Commit c0a8b218 authored by void's avatar void
Browse files

agregar links para iniciar sesion en crearcuenta y viceversa (fixes #16)

parent 5d091f6c
......@@ -7,6 +7,9 @@
:handleSubmit="handleSubmit"
:parseError="parseError"
/>
<small>
<router-link :to="iniciarSesionPath">¿ya tenés una cuenta?</router-link>
</small>
</div>
</template>
......@@ -43,6 +46,11 @@ export default {
redirect() {
return this.$route.query.redirect
},
iniciarSesionPath() {
return `/iniciarSesion${
this.redirect ? '?redirect=' + encodeURIComponent(this.redirect) : ''
}`
},
},
methods: {
handleSubmit(userData) {
......
......@@ -7,6 +7,9 @@
:handleSubmit="handleSubmit"
:parseError="parseError"
/>
<small>
<router-link :to="crearCuentaPath">¿no tenés una cuenta?</router-link>
</small>
</div>
</template>
......@@ -44,6 +47,11 @@ export default {
redirect() {
return this.$route.query.redirect
},
crearCuentaPath() {
return `/crearCuenta${
this.redirect ? '?redirect=' + encodeURIComponent(this.redirect) : ''
}`
},
},
methods: {
handleSubmit(userData) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment