mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		@@ -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();
 | 
			
		||||
    });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user