Mercurial > kallithea
comparison .hgtags @ 5690:2c3941817a8e
auth: authenticate using either username or email address
Use User.get_by_username_or_email() in get_user.
In authenticate(), update username if get_user succeeds.
The point of this change is that the web login is a complex thing that
includes, apart the authentication itself, form validation and a bunch of
other things.
This change on its own makes it possible to authenticate a user using its email
address, but that on its own isn't enough for web login or git/hg auth.
author | Andrew Shadura <andrew@shadura.me> |
---|---|
date | Sat, 30 Jan 2016 16:36:26 +0100 |
parents | 1c9c3b0f21ae |
children | c92b6787c843 |
comparison
equal
deleted
inserted
replaced
5689:5bd63512505e | 5690:2c3941817a8e |
---|