mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Switch to use simple hashed passwords instead of per-user salt
This commit is contained in:
@@ -56,6 +56,12 @@ class LoginHandler(BaseHandler):
|
||||
except User.DoesNotExist:
|
||||
return rc.NOT_HERE
|
||||
|
||||
d = { 'id': u.id, 'username': u.username, 'password': u.password, 'email': u.email, 'groups': u.groups.all() }
|
||||
return d
|
||||
d = { 'auth': 'ok', 'id': u.id, 'username': u.username,
|
||||
'password': u.password, 'email': u.email, 'groups': u.groups.all(),
|
||||
'characters': EVEPlayerCharacter.objects.filter(eveaccount__user=u) }
|
||||
|
||||
if request.GET['pass'] == user.password:
|
||||
return d
|
||||
|
||||
return { 'auth': 'failed' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user