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 @@ ...@@ -7,6 +7,9 @@
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit"
:parseError="parseError" :parseError="parseError"
/> />
<small>
<router-link :to="iniciarSesionPath">¿ya tenés una cuenta?</router-link>
</small>
</div> </div>
</template> </template>
...@@ -43,6 +46,11 @@ export default { ...@@ -43,6 +46,11 @@ export default {
redirect() { redirect() {
return this.$route.query.redirect return this.$route.query.redirect
}, },
iniciarSesionPath() {
return `/iniciarSesion${
this.redirect ? '?redirect=' + encodeURIComponent(this.redirect) : ''
}`
},
}, },
methods: { methods: {
handleSubmit(userData) { handleSubmit(userData) {
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit"
:parseError="parseError" :parseError="parseError"
/> />
<small>
<router-link :to="crearCuentaPath">¿no tenés una cuenta?</router-link>
</small>
</div> </div>
</template> </template>
...@@ -44,6 +47,11 @@ export default { ...@@ -44,6 +47,11 @@ export default {
redirect() { redirect() {
return this.$route.query.redirect return this.$route.query.redirect
}, },
crearCuentaPath() {
return `/crearCuenta${
this.redirect ? '?redirect=' + encodeURIComponent(this.redirect) : ''
}`
},
}, },
methods: { methods: {
handleSubmit(userData) { 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