From a840d396093ef968f9512862197ac166a1ff9921 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 1 Jun 2016 20:36:27 +0200 Subject: Add authentication tokens to make friends/quit friends --- client/app/users/shared/user.model.ts | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 client/app/users/shared/user.model.ts (limited to 'client/app/users/shared/user.model.ts') diff --git a/client/app/users/shared/user.model.ts b/client/app/users/shared/user.model.ts deleted file mode 100644 index ca0a5f26c..000000000 --- a/client/app/users/shared/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