From 4a6995be18b15de1834a39c8921a0e4109671bb6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Jun 2016 22:08:03 +0200 Subject: First draft to use webpack instead of systemjs --- client/app/shared/users/user.model.ts | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 client/app/shared/users/user.model.ts (limited to 'client/app/shared/users/user.model.ts') diff --git a/client/app/shared/users/user.model.ts b/client/app/shared/users/user.model.ts deleted file mode 100644 index ca0a5f26c..000000000 --- a/client/app/shared/users/user.model.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Token } from './token.model'; - -export class User { - username: string; - token: Token; - - static load() { - return new User(localStorage.getItem('username'), Token.load()); - } - - constructor(username: string, hash_token: any) { - this.username = username; - this.token = new Token(hash_token); - } - - save() { - localStorage.setItem('username', this.username); - this.token.save(); - } -} -- cgit v1.2.3