2
2

Hi, I am integrating osqa with another site which has already validated the emails. I need to disable all email validation in osqa.

Here is the approach that i tried:

I commented the validation related urls in urls.py

In my custom AuthenticationMiddleware (i am authenticating from the parent site), if the user has not yet been added to the osqa db, i create a new entry and set email_isvalid = True.

The problem is, when i try to run the above code it shows a runtime error; this error to be exact:

NoReverseMatch: Reverse for 'auth_validate_email' with arguments '()' and keyword arguments '{'code': <validationhash: 098c48dd46849b22c86ccb4667572ed3="">, 'user': 11L}' not found.

Which modules handle email validation?

asked 04 Jul '11, 09:41

Balaji's gravatar image

Balaji
2013613
accept rate: 66%

edited 05 Jul '11, 07:33

@Balaji, we require all postings at meta.osqa.net to have a clear, specific QUESTION in the title field. Please edit this ASP to make it a proper question.

(04 Jul '11, 09:50) rickross ♦♦

Done. Can you answer my question now?

(04 Jul '11, 09:55) Balaji

OK, i found it out myself. For others who want to do the same thing, besides the above steps you also need to edit osqa/forum/models/user.py UserJoinsAction.process_action; just return from that function without doing anything. Don't forgot to set email_isvalid = True when you create a new user as mentioned in the question.

link

answered 05 Jul '11, 02:19

Balaji's gravatar image

Balaji
2013613
accept rate: 66%

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
×43
×25
×20
×14

Asked: 04 Jul '11, 09:41

Seen: 865 times

Last updated: 05 Jul '11, 07:33

powered by OSQA