mirror of
https://github.com/danbulant/ester_os
synced 2026-06-10 18:13:44 +00:00
Start working on login logic
This commit is contained in:
parent
10274e7a91
commit
563d51cab5
1 changed files with 20 additions and 0 deletions
20
client/src/managers/login.ts
Normal file
20
client/src/managers/login.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import User from './user';
|
||||
import NotYetImplemented from '../errors/notYetImplemented';
|
||||
|
||||
class Login {
|
||||
user: User = null;
|
||||
|
||||
checkName(name: string): boolean{
|
||||
return /[a-z0-9_-](?:@[a-z0-9_-])/gi.test(name);
|
||||
}
|
||||
|
||||
async fetchAvatar(name: string): Promise<string>{
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
|
||||
async login(name: string, password: string): Promise<User> {
|
||||
throw new NotYetImplemented();
|
||||
}
|
||||
}
|
||||
|
||||
export default Login;
|
||||
Loading…
Reference in a new issue