From 41a2aee38cf812510010da09de9bae53590ec119 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 May 2016 16:23:10 +0200 Subject: Follow the angular styleguide for the directories structure --- client/angular/users/models/user.ts | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 client/angular/users/models/user.ts (limited to 'client/angular/users/models/user.ts') diff --git a/client/angular/users/models/user.ts b/client/angular/users/models/user.ts deleted file mode 100644 index 3367e3bb5..000000000 --- a/client/angular/users/models/user.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Token } from './token'; - -export class User { - username: string; - token: Token; - - static load(): User { - return new User(localStorage.getItem('username'), Token.load()); - } - - constructor (username: string, hash_token: any) { - this.username = username; - this.token = new Token(hash_token); - } - - save(): void { - localStorage.setItem('username', this.username); - this.token.save(); - } -} -- cgit v1.2.3