소스 검색

Update Oauth login to current API format

GRUNBLATT Remy 5 년 전
부모
커밋
d0b6e8fd16
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/converse-oauth.js

+ 4 - 4
src/converse-oauth.js

@@ -109,10 +109,10 @@ converse.plugins.add("converse-oauth", {
             async fetchOAuthProfileDataAndLogin () {
                 const profile = await this.oauth_service.api('me');
                 const response = this.oauth_service.getAuthResponse();
-                _converse.api.user.login({
-                    'jid': `${profile.name}@${this.provider.get('host')}`,
-                    'password': response.access_token
-                });
+                _converse.api.user.login(
+                    `${profile.name}@${this.provider.get('host')}`,
+                    response.access_token
+                );
             },
 
             async oauthLogin (ev) {