Add files via upload
This commit is contained in:
parent
7649f3634b
commit
879ed0188a
@ -24,7 +24,13 @@
|
|||||||
v-model="passwordConfirm"
|
v-model="passwordConfirm"
|
||||||
:placeholder="$t('login.passwordConfirm')"
|
:placeholder="$t('login.passwordConfirm')"
|
||||||
/>
|
/>
|
||||||
|
<input
|
||||||
|
class="input input--block"
|
||||||
|
v-if="createMode && useInvitationCode"
|
||||||
|
type="text"
|
||||||
|
v-model="invitationCode"
|
||||||
|
:placeholder="$t('login.invitationCode')"
|
||||||
|
/>
|
||||||
<div v-if="recaptcha" id="recaptcha"></div>
|
<div v-if="recaptcha" id="recaptcha"></div>
|
||||||
<input
|
<input
|
||||||
class="button button--block"
|
class="button button--block"
|
||||||
@ -49,12 +55,14 @@ import {
|
|||||||
recaptcha,
|
recaptcha,
|
||||||
recaptchaKey,
|
recaptchaKey,
|
||||||
signup,
|
signup,
|
||||||
|
useInvitationCode,
|
||||||
} from "@/utils/constants";
|
} from "@/utils/constants";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "login",
|
name: "login",
|
||||||
computed: {
|
computed: {
|
||||||
signup: () => signup,
|
signup: () => signup,
|
||||||
|
useInvitationCode: () => useInvitationCode,
|
||||||
name: () => name,
|
name: () => name,
|
||||||
logoURL: () => logoURL,
|
logoURL: () => logoURL,
|
||||||
},
|
},
|
||||||
@ -66,6 +74,7 @@ export default {
|
|||||||
password: "",
|
password: "",
|
||||||
recaptcha: recaptcha,
|
recaptcha: recaptcha,
|
||||||
passwordConfirm: "",
|
passwordConfirm: "",
|
||||||
|
invitationCode: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -109,7 +118,7 @@ export default {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (this.createMode) {
|
if (this.createMode) {
|
||||||
await auth.signup(this.username, this.password);
|
await auth.signup(this.username, this.password, this.invitationCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
await auth.login(this.username, this.password, captcha);
|
await auth.login(this.username, this.password, captcha);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user