Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Login.vue
Show All 38 Lines | <div class="container d-flex flex-column align-items-center justify-content-center"> | ||||
</button> | </button> | ||||
</div> | </div> | ||||
</form> | </form> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="mt-1"> | <div class="mt-1"> | ||||
<router-link v-if="!$root.isAdmin" :to="{ name: 'password-reset' }" id="forgot-password">Forgot password?</router-link> | <router-link v-if="!$root.isAdmin" :to="{ name: 'password-reset' }" id="forgot-password">Forgot password?</router-link> | ||||
<a v-if="webmailURL" :href="webmailURL" class="ml-5" id="webmail">Webmail</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
email: '', | email: '', | ||||
password: '', | password: '', | ||||
secondFactor: '' | secondFactor: '', | ||||
webmailURL: window.config['app.webmail_url'] | |||||
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
submitLogin() { | submitLogin() { | ||||
this.$root.clearFormValidation($('form.form-signin')) | this.$root.clearFormValidation($('form.form-signin')) | ||||
axios.post('/api/auth/login', { | axios.post('/api/auth/login', { | ||||
email: this.email, | email: this.email, | ||||
Show All 10 Lines |