2 /* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
3 and is published under the AGPL license. */
5 class Syj_Form_Pending_ResetPassword extends Syj_Form_Pending
7 protected function getActivateOptions() {
8 $user = $this->_pending->user;
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, ENT_COMPAT, "UTF-8");
13 $activatetext = vsprintf ($activatetext, array($pseudo));
16 'label' => __("reset my password"),
17 'description' => $activatetext);
21 protected function getCancelOptions() {
23 'label' => __("cancel request"),
24 'description' => __("To cancel this request, press following button. Your password will not change.")