File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -74,26 +74,23 @@ class API {
74
74
}
75
75
76
76
async login ( email : string , password : string ) {
77
- const response = await this . fetch ( `${ this . serverUrl } /login` , {
77
+ await this . fetch ( `${ this . serverUrl } /login` , {
78
78
method : 'post' ,
79
79
body : encodeFormComponent ( { email, password} ) ,
80
80
headers : await this . wrapHeaders ( {
81
81
'Content-Type' : 'application/x-www-form-urlencoded;charset=UTF-8'
82
82
} )
83
83
} )
84
-
85
- return response . status === 200
86
84
}
87
85
88
86
async loginLdap ( username : string , password : string ) {
89
- const response = await this . fetch ( `${ this . serverUrl } /auth/ldap` , {
87
+ await this . fetch ( `${ this . serverUrl } /auth/ldap` , {
90
88
method : 'post' ,
91
89
body : encodeFormComponent ( { username, password} ) ,
92
90
headers : await this . wrapHeaders ( {
93
91
'Content-Type' : 'application/x-www-form-urlencoded;charset=UTF-8'
94
92
} )
95
93
} )
96
- return response . status === 200
97
94
}
98
95
99
96
async logout ( ) {
@@ -199,7 +196,7 @@ class API {
199
196
} catch ( err ) {
200
197
return [ ]
201
198
}
202
-
199
+
203
200
return data . teams || [ ]
204
201
}
205
202
You can’t perform that action at this time.
0 commit comments