A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
small refactor
Jonas Winkler3bef72c7177c
diff --git a/src-ui/src/app/services/auth.service.ts b/src-ui/src/app/services/auth.service.tsindex 1f2f1bdf3..dc31a9bbd 100644--- a/src-ui/src/app/services/auth.service.ts+++ b/src-ui/src/app/services/auth.service.ts@@ -54,13 +54,9 @@ export class AuthService {map(tokenResponse => {this.currentUsername = usernamethis.token = tokenResponse.token- if (rememberMe) {- localStorage.setItem('auth-service:token', this.token)- localStorage.setItem('auth-service:currentUsername', this.currentUsername)- } else {- sessionStorage.setItem('auth-service:token', this.token)- sessionStorage.setItem('auth-service:currentUsername', this.currentUsername)- }+ let storage = rememberMe ? localStorage : sessionStorage+ storage.setItem('auth-service:token', this.token)+ storage.setItem('auth-service:currentUsername', this.currentUsername)return true}))