@everymatrix/general-player-login-form 0.0.365 → 0.0.368
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/general-player-login-form",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.368",
|
|
4
4
|
"main": "dist/general-player-login-form.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "8de3cc787cc97aec99916dfedb01ec69ac55ba98"
|
|
40
40
|
}
|
|
@@ -104,7 +104,8 @@
|
|
|
104
104
|
window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
const submitLoginForm = ():void => {
|
|
107
|
+
const submitLoginForm = (e):void => {
|
|
108
|
+
e.preventDefault();
|
|
108
109
|
doRecaptcha()
|
|
109
110
|
.then((token:string) => {
|
|
110
111
|
if (checkUserIdentifier(userValue) && checkUserPassword(userPassword)) {
|
|
@@ -313,9 +314,9 @@
|
|
|
313
314
|
{#if errorMessage}
|
|
314
315
|
<p class="ErrorMessage" part="ErrorMessage">{errorMessage}</p>
|
|
315
316
|
{/if}
|
|
316
|
-
</
|
|
317
|
-
<button class="SignInButton" part="SignInButton" on:click={() => submitLoginForm()} disabled={isFormDataInvalid} id="signin-button">{$_('loginForm.loginButton')}</button>
|
|
317
|
+
<button class="SignInButton" part="SignInButton" on:click={(e) => submitLoginForm(e)} disabled={isFormDataInvalid} id="signin-button">{$_('loginForm.loginButton')}</button>
|
|
318
318
|
<button class="ForgotPasswordButton" part="ForgotPasswordButton" on:click={() => switchToForgotPassword()}>{$_('loginForm.loginForgotPassword')}</button>
|
|
319
|
+
</form>
|
|
319
320
|
</div>
|
|
320
321
|
{/if}
|
|
321
322
|
{/if}
|