Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating new Signup/Signin Flows #17

Closed
huxley opened this issue Aug 25, 2015 · 3 comments
Closed

Creating new Signup/Signin Flows #17

huxley opened this issue Aug 25, 2015 · 3 comments
Labels

Comments

@huxley
Copy link
Contributor

huxley commented Aug 25, 2015

Is there a recommended way to create a new signup/signin flows?

My use case is doing case-insensitive matches on the username followed by the email address, where the username can be different from the email address.

@huxley
Copy link
Contributor Author

huxley commented Sep 4, 2015

Having re-read the documentation, I now see that it's covered under the Custom Signup Flows and Combining Signin Flows. So I can just inherit from one of the flows and customize it to my needs. Cool.

Linking the sections of the docs just for anyone like myself that didn't realize how flexible the system actually is:

@idlesign
Copy link
Owner

idlesign commented Sep 4, 2015

Sorry. I've answered this one by e-mail, and it seems that GitHub won't accept it.
The answer was:

For this very case the most natural way would be adding, say, 'username_case_sensitive' bool attribute to existing base *-flow class. That should trigger alternative implementations of login or user creation. So that required behaviour could be chosen in sitegate decorators.

If implemented, this feature is a direct candidate for pull request.

@huxley
Copy link
Contributor Author

huxley commented Sep 4, 2015

Great, I'll look over the code more closely and make a pull request if I think I find a good implementation. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants