UNTESTED CHANGES to login system
Extracted login logic to independent component Login.tsx Implemented dummy password encryption logic Created LoginContext, login+registration handlers relevant type annots added untested change username function in main App button updated PAPERWORK and README
This commit is contained in:
parent
e85f778774
commit
5ce5f9e4eb
11 changed files with 303 additions and 79 deletions
|
@ -1,4 +1,9 @@
|
|||
import { createContext } from "react";
|
||||
import { LangType } from "./Chat/types";
|
||||
|
||||
export const LangContext = createContext<LangType>("en_US");
|
||||
import { LangType } from "./Chat/messageTypes";
|
||||
export type LoginType = {
|
||||
username: string;
|
||||
lastSeen: number;
|
||||
validUntil: number;
|
||||
};
|
||||
export const LangContext = createContext<LangType>("en_US");
|
||||
export const LoginContext = createContext<LoginType | undefined>(undefined);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue