mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-13 03:42:18 +02:00
fix conflicts
This commit is contained in:
parent
88c6e93e2c
commit
081920a58d
@ -160,15 +160,16 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
|
|||||||
return onFail(i18next.t("menu:emptyUsername"));
|
return onFail(i18next.t("menu:emptyUsername"));
|
||||||
}
|
}
|
||||||
|
|
||||||
const [usernameInput, passwordInput] = this.inputs;
|
const [usernameInput, passwordInput] = this.inputs;
|
||||||
|
|
||||||
pokerogueApi.account.login({ username: usernameInput.text, password: passwordInput.text }).then(error => {
|
pokerogueApi.account.login({ username: usernameInput.text, password: passwordInput.text }).then(error => {
|
||||||
if (!error && originalLoginAction) {
|
if (!error && originalLoginAction) {
|
||||||
originalLoginAction();
|
originalLoginAction();
|
||||||
} else {
|
} else {
|
||||||
onFail(error);
|
onFail(error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -122,17 +122,17 @@ export default class RegistrationFormUiHandler extends FormModalUiHandler {
|
|||||||
}
|
}
|
||||||
const [usernameInput, passwordInput] = this.inputs;
|
const [usernameInput, passwordInput] = this.inputs;
|
||||||
pokerogueApi.account
|
pokerogueApi.account
|
||||||
.register({
|
.register({
|
||||||
username: usernameInput.text,
|
username: usernameInput.text,
|
||||||
password: passwordInput.text,
|
password: passwordInput.text,
|
||||||
})
|
})
|
||||||
.then(registerError => {
|
.then(registerError => {
|
||||||
if (!registerError) {
|
if (!registerError) {
|
||||||
pokerogueApi.account
|
pokerogueApi.account
|
||||||
.login({
|
.login({
|
||||||
username: usernameInput.text,
|
username: usernameInput.text,
|
||||||
password: passwordInput.text,
|
password: passwordInput.text,
|
||||||
})
|
})
|
||||||
.then(loginError => {
|
.then(loginError => {
|
||||||
if (!loginError) {
|
if (!loginError) {
|
||||||
originalRegistrationAction?.();
|
originalRegistrationAction?.();
|
||||||
|
Loading…
Reference in New Issue
Block a user