aboutsummaryrefslogtreecommitdiff
path: root/app/views/auth
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-07-22 13:52:03 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-07-22 13:52:03 +0200
commit02c3546440f961018adc1e2c8e97c16f2aca18fc (patch)
tree9a23d9c0e6b0aa3ccea38273b98e5c16413d2b34 /app/views/auth
parent9fca5c70f33291cacc04e7bdfa01a12c6df3f97c (diff)
Registration action is handled and create a user
See https://github.com/FreshRSS/FreshRSS/issues/679
Diffstat (limited to 'app/views/auth')
-rw-r--r--app/views/auth/register.phtml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/auth/register.phtml b/app/views/auth/register.phtml
index 31ab89d26..96c91f411 100644
--- a/app/views/auth/register.phtml
+++ b/app/views/auth/register.phtml
@@ -29,6 +29,13 @@
</div>
<div>
+ <?php
+ $redirect_url = urlencode(Minz_Url::display(
+ array('c' => 'index', 'a' => 'index'),
+ 'php', true
+ ));
+ ?>
+ <input type="hidden" name="r" value="<?php echo $redirect_url; ?>" />
<button type="submit" class="btn btn-important"><?php echo _t('gen.action.create'); ?></button>
<a class="btn" href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.cancel'); ?></a>
</div>