mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
* client: fix router when not authenticated, small fixes for tasks * load the user only when necessary * fix tests
31 lines
692 B
Vue
31 lines
692 B
Vue
<template lang="pug">
|
|
nav
|
|
router-link(:to="{name: 'login'}") Login
|
|
router-link(:to="{name: 'register'}") Register
|
|
</template>
|
|
|
|
|
|
<script>
|
|
export default {
|
|
methods: {
|
|
play () {
|
|
// @TODO:
|
|
// Auth play click
|
|
},
|
|
// passwordReset (email) {
|
|
// if(email == null || email.length == 0) {
|
|
// alert(window.env.t('invalidEmail'));
|
|
// } else {
|
|
// $http.post(ApiUrl.get() + '/api/v3/user/reset-password', {email:email})
|
|
// .success(function(){
|
|
// alert(window.env.t('newPassSent'));
|
|
// })
|
|
// .error(function(data){
|
|
// alert(data.err);
|
|
// });
|
|
// }
|
|
// },
|
|
},
|
|
};
|
|
</script>
|