]> dev.renevier.net Git - syj.git/blob - application/forms/Pending/ResetPassword.php
version 0.1
[syj.git] / application / forms / Pending / ResetPassword.php
1 <?php
2 /*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
3     and is published under the AGPL license. */
4
5 class Syj_Form_Pending_ResetPassword extends Syj_Form_Pending
6 {
7     protected function getActivateOptions() {
8         $user = $this->_pending->user;
9
10         $translator = $this->getTranslator();
11         $activatetext = $translator->translate("Hi %s. Someone, probably you, has asked to reset password for your account. To get a new password, validate with following button.");
12         $pseudo = htmlspecialchars($user->pseudo);
13         $activatetext = vsprintf ($activatetext, array($pseudo));
14
15         return array(
16                 'label' => __("reset my password"),
17                 'description' => $activatetext);
18
19     }
20
21     protected function getCancelOptions() {
22         return array(
23                 'label' => __("cancel request"),
24                 'description' => __("To cancel this request, press following button. Your password will not change.")
25                 );
26     }
27 }