I'm using LDAP authentication to validate usernames/passwords, and creating a user account for when validation is successful.

Users are still being sent welcome emails though, which ask them to validate their email address (this will never be necessary, since I'm getting their email from an AD server).

Is there a way to disable these emails?

I'm creating new users using:

new_user = User(username=username, email=email)
new_user.email_isvalid = True
new_user.set_unusable_password()
new_user.save()
forum.actions.UserJoinsAction(user=new_user, ip=request.META['REMOTE_ADDR']).save()

Is there some better way?

asked 16 Mar '11, 11:55

suicas's gravatar image

suicas
47138
accept rate: 0%

edited 16 Mar '11, 12:04


Check this

link

answered 05 Jul '11, 02:21

Balaji's gravatar image

Balaji
2013613
accept rate: 66%

edited 05 Jul '11, 02:22

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×101
×25
×20

Asked: 16 Mar '11, 11:55

Seen: 835 times

Last updated: 05 Jul '11, 02:22

powered by OSQA