Fix: Remove legacy otp from login and show the right device id.

This commit is contained in:
2021-06-26 09:14:36 +05:30
parent eb2f783b9e
commit a1a1c10dff
3 changed files with 9 additions and 35 deletions

View File

@ -82,11 +82,10 @@ export class AuthService {
return this.currentUserSubject.value;
}
login(username: string, password: string, otp: string) {
login(username: string, password: string) {
const formData: FormData = new FormData();
formData.append('username', username);
formData.append('password', password);
formData.append('otp', otp);
formData.append('grant_type', 'password');
return this.http
.post<{ access_token: string; token_type: string }>(loginUrl, formData)