mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
delete cookie before login and new key on rpc error data
This commit is contained in:
committed by
Aiden McClelland
parent
7cd996ae5b
commit
f7556b78c5
@@ -16,7 +16,7 @@
|
||||
</ion-label>
|
||||
</div>
|
||||
|
||||
<div *ngIf="message" class="long-message" >
|
||||
<div *ngIf="message" class="long-message">
|
||||
{{ message }}
|
||||
</div>
|
||||
<div *ngIf="hasDependentViolation" style="margin: 25px 0px;">
|
||||
|
||||
@@ -47,6 +47,7 @@ export class LoginPage {
|
||||
await this.loader.present()
|
||||
|
||||
try {
|
||||
document.cookie = ''
|
||||
await this.api.login({
|
||||
password: this.password,
|
||||
metadata: { platforms: getPlatforms() },
|
||||
|
||||
@@ -156,11 +156,12 @@ export interface RPCSuccess<T> extends RPCBase {
|
||||
|
||||
export interface RPCError extends RPCBase {
|
||||
error: {
|
||||
code: number,
|
||||
code: number
|
||||
message: string
|
||||
data?: {
|
||||
details: string
|
||||
revision: Revision | null
|
||||
debug: string | null
|
||||
} | string
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user