[update] settings menu
This commit is contained in:
@@ -38,7 +38,8 @@ export class LoginComponent implements OnInit {
|
||||
async onSubmit(form: any) {
|
||||
if (!form.valid) return false;
|
||||
try {
|
||||
await lastValueFrom(this.authService.login(this.dataForm));
|
||||
const result = await lastValueFrom(this.authService.login(this.dataForm));
|
||||
this.appService.setAuth(result);
|
||||
return this.router.navigate(['/pages']);
|
||||
} catch (err) {
|
||||
return this.appService.message(EAction.ERROR, EText.NO_DATA);
|
||||
|
||||
Reference in New Issue
Block a user