It can be written as an extension (I believe that plugins are invoked on
every page) and used in a widget as
<php $aiki->utils->ResetPasswordForm() php>
and in utils.php
class utils {
public function ResetPasswordForm() {
if (isset($_POST['passwd'])) {
<UPDATE aiki_users >
} else {
return "<FORM>"
}
}
}
This extension can be put into extension repository, if we have one, for
other people to use. Or in the Wiki.
--
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/793276
Title:
The request new password form needs a helper function
Status in Aiki Framework:
Confirmed
Bug description:
The set new password form has a helper function that is called by:
<php
$aiki->membership->ResetPassword(POST[username],POST[email],[email protected],Reset
your Font Library password,Reset your password:); php>
In addition, the same class should have something like a
RequestNewPassword() function that also outputs a form where the user
can enter the username and and password to be submitted to the above
function. The only argument of the function should be the URL where
the above reset code is. Otherwise every site developer will have to
create this form by hand.
Another (perhaps better) option would be for ResetPassword function to
output the blank form with username and password fields if it does not
detect values for these arguments being posted. That way the same
page/widget can be used for drawing the form and for showing the
instructions after the form is submitted.
To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/793276/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp