mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
prep for live mocks
This commit is contained in:
committed by
Aiden McClelland
parent
21dd8fa618
commit
c5f2379c6e
@@ -38,12 +38,8 @@ export class AuthService {
|
||||
return this.authState$.pipe(distinctUntilChanged())
|
||||
}
|
||||
|
||||
async submitPin (pin: string): Promise<void> {
|
||||
await this.api.submitPin({ pin })
|
||||
}
|
||||
|
||||
async submitPassword (password: string): Promise<void> {
|
||||
await this.api.submitPassword({ password })
|
||||
async login (password: string): Promise<void> {
|
||||
await this.api.login({ password })
|
||||
await this.storage.set(StorageKeys.LOGGED_IN_KEY, true)
|
||||
this.authState$.next(AuthState.VERIFIED)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user