Skip to content

Commit

Permalink
Merge pull request #203 from caseyswilliams/FixRegistration
Browse files Browse the repository at this point in the history
Fix registration bug caused by optional recaptcha
  • Loading branch information
Saibamen authored Feb 21, 2023
2 parents e657ff6 + e2dee35 commit 20a378f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UT4MasterServer.Web/src/pages/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ import { valid as vValid } from '@/directives/valid';
import { VueRecaptcha } from 'vue-recaptcha';
import { IRegisterRequest } from '@/types/register-request';
const recaptchaSiteKey = __RECAPTCHA_SITE_KEY;
const username = shallowRef('');
const password = shallowRef('');
const email = shallowRef('');
const status = shallowRef(AsyncStatus.OK);
const emailValid = computed(() => validateEmail(email.value));
const passwordValid = computed(() => validatePassword(password.value));
const recaptchaValid = shallowRef(false);
const recaptchaValid = shallowRef(!recaptchaSiteKey);
const formValid = computed(
() =>
emailValid.value &&
Expand All @@ -116,7 +117,6 @@ const formValid = computed(
);
const errorMessage = shallowRef('Error registering account. Please try again.');
const submitAttempted = shallowRef(false);
const recaptchaSiteKey = __RECAPTCHA_SITE_KEY;
const recaptchaToken = shallowRef<string | undefined>(undefined);
const accountService = new AccountService();
Expand Down

0 comments on commit 20a378f

Please sign in to comment.