Disabling account e-mail fields if e-mail service is disabled (verification e-mail couldn't be sent).
This commit is contained in:
@@ -9,6 +9,10 @@ import navigate from '#/src/navigate.js';
|
||||
const pageContext = inject('pageContext');
|
||||
const user = pageContext.user;
|
||||
const allowSignup = pageContext.env.allowSignup;
|
||||
// const allowRecovery = pageContext.env.emailEnabled;
|
||||
const allowRecovery = false; // TODO: implement
|
||||
|
||||
console.log(pageContext.env);
|
||||
|
||||
const username = ref('');
|
||||
const password = ref('');
|
||||
@@ -104,6 +108,12 @@ onMounted(() => {
|
||||
href="/signup"
|
||||
class="link"
|
||||
>Create an account</a>
|
||||
|
||||
<a
|
||||
v-if="allowRecovery"
|
||||
href="/recovery"
|
||||
class="link"
|
||||
>I forgot my password</a>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user