mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
auth: Include user_id in the params returned at the end of mobile flow.
The user id is a very useful piece of information that the mobile client should have access to - instead of only getting the email. This makes it much simpler to impleent clients that might be robust to changes in email address.
This commit is contained in:
committed by
Tim Abbott
parent
9e979e9e66
commit
0abbb87155
@@ -382,6 +382,7 @@ def create_response_for_otp_flow(
|
||||
params = {
|
||||
encrypted_key_field_name: otp_encrypt_api_key(key, otp),
|
||||
"email": user_profile.delivery_email,
|
||||
"user_id": user_profile.id,
|
||||
"realm": realm_uri,
|
||||
}
|
||||
# We can't use HttpResponseRedirect, since it only allows HTTP(S) URLs
|
||||
|
||||
Reference in New Issue
Block a user