in src/app/ui/login/login.component.ts [64:81]
public async login() {
if (this._loginForm.valid) {
try {
this._loading = true
this._error = null
this._restUrl.apiEndpoint = this.apiEndpoint
await this._sessions.login(this.email, this.password).toPromise()
this._routing.goToMain()
} catch (e) {
this._error = e
} finally {
this._loading = false
}
}
}