Login enhancements (#847)
This pull request introduces a series of enhancements to our recently revamped login page, streamlining the user experience. These changes were meticulously designed and developed to ensure a seamless login process for our users while adhering to the highest standards of usability and privacy.
This commit is contained in:
commit
82368bbe76
2 changed files with 4 additions and 4 deletions
|
|
@ -32,8 +32,8 @@ export default function LoginPage(): JSX.Element {
|
|||
|
||||
function signIn() {
|
||||
const user: LoginType = {
|
||||
username: username,
|
||||
password: password,
|
||||
username: username.trim(),
|
||||
password: password.trim(),
|
||||
};
|
||||
onLogin(user)
|
||||
.then((user) => {
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ export default function SignUp(): JSX.Element {
|
|||
function handleSignup(): void {
|
||||
const { username, password } = inputState;
|
||||
const newUser: UserInputType = {
|
||||
username,
|
||||
password,
|
||||
username: username.trim(),
|
||||
password: password.trim(),
|
||||
};
|
||||
addUser(newUser)
|
||||
.then((user) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue