Fix message template layout, and it should be rendered as guest page
This commit is contained in:
parent
3c8725b556
commit
798e984205
|
|
@ -89,9 +89,9 @@ class RegisterController extends Controller {
|
|||
\OC_Template::printErrorPage( 'A problem occurs during sending the e-mail please contact your administrator.');
|
||||
return;
|
||||
}
|
||||
return new TemplateResponse('registration', 'message', array('msgs' =>
|
||||
return new TemplateResponse('registration', 'message', array('msg' =>
|
||||
$this->l10n->t('Verification email successfully sent.')
|
||||
));
|
||||
), 'guest');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -148,7 +148,7 @@ class RegisterController extends Controller {
|
|||
}
|
||||
return new TemplateResponse('registration', 'message', array('msgs' =>
|
||||
$this->l10n->t('Your account has been successfully created, you can <a href="{link}">log in now</a>.')
|
||||
));
|
||||
), 'guest');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
<ul class="error-wide">
|
||||
<?php foreach($_["msgs"] as $msg):?>
|
||||
<li class='msg'>
|
||||
<?php print_unesacped($msg) ?><br/>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
<?php
|
||||
\OCP\Util::addStyle('registration', 'style');
|
||||
?>
|
||||
<ul class="msg error-wide">
|
||||
<li><?php print_unescaped($_['msg']) ?></li>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Reference in New Issue