mirror of https://github.com/zulip/zulip.git
settings: Fix getting API key when using social auth.
Long-term, we want this flow to do a full re-authentication, but this makes the frontend consistent with the backend and fixes a confusing bug where submitting the form ended up adding a weird `?password=` thing to the URL, in addition to not working. Fixes #12200.
This commit is contained in:
parent
f5375adf8f
commit
3b502fa235
|
@ -236,8 +236,8 @@ exports.set_up = function () {
|
|||
if (page_params.realm_password_auth_enabled !== false) {
|
||||
$("#get_api_key_box").show();
|
||||
} else {
|
||||
// Skip the password prompt step
|
||||
$("#get_api_key_box form").submit();
|
||||
// Skip the password prompt step, since the user doesn't have one.
|
||||
$("#get_api_key_button").click();
|
||||
}
|
||||
$("#api_key_button_box").hide();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue