ChangeSet ID: 26129
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/06/29 11:39:15
Modified files:
. : appsubmit.php
Log message:
Jonathan Ernst <jonathan(a)ernstfamily.ch>
Fix typo in appsubmit
Patch: http://cvs.winehq.org/patch.py?id=26129
Old revision New revision Changes Path
1.45 1.46 +1 -1 appdb/appsubmit.php
Index: appdb/appsubmit.php
diff -u -p appdb/appsubmit.php:1.45 appdb/appsubmit.php:1.46
--- appdb/appsubmit.php:1.45 29 Jun 2006 16:39:15 -0000
+++ appdb/appsubmit.php 29 Jun 2006 16:39:15 -0000
@@ -66,7 +66,7 @@ function newSubmition($errors)
//deny access if not logged on
if(!$_SESSION['current']->isLoggedIn())
{
- util_show_error_page("Insufficient privilages to create application. Are you sure you are logged in?");
+ util_show_error_page("Insufficient privileges to create application. Are you sure you are logged in?");
exit;
}
ChangeSet ID: 26128
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/06/29 11:34:18
Modified files:
. : account.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Fix requesting a new password. Missed a user::update() -> user::update_password() call. Add a more explicit
message in the case where the user doesn't enter any email address.
Patch: http://cvs.winehq.org/patch.py?id=26128
Old revision New revision Changes Path
1.21 1.22 +10 -2 appdb/account.php
Index: appdb/account.php
diff -u -p appdb/account.php:1.21 appdb/account.php:1.22
--- appdb/account.php:1.21 29 Jun 2006 16:34:18 -0000
+++ appdb/account.php 29 Jun 2006 16:34:18 -0000
@@ -143,11 +143,19 @@ function cmd_do_new()
*/
function cmd_send_passwd()
{
-
$aClean = array(); //array of filtered user input
$aClean['ext_email'] = makeSafe($_POST['ext_email']);
+ /* if the user didn't enter any email address we should */
+ /* ask them to */
+ if($aClean['ext_email'] == "")
+ {
+ addmsg("Please enter your email address in the 'E-mail' field and re-request a new password",
+ "green");
+ redirect(apidb_fullurl("account.php?cmd=login"));
+ }
+
$note = '(<b>Note</b>: accounts for <b>appdb</b>.winehq.org and <b>bugs</b>.winehq.org '
.'are separated, so You might need to <b>create second</b> account for appdb.)';
@@ -156,7 +164,7 @@ function cmd_send_passwd()
$user = new User($userid);
if ($userid)
{
- if ($user->update(null, $passwd))
+ if ($user->update_password($passwd))
{
$sSubject = "Application DB Lost Password";
$sMsg = "We have received a request that you lost your password.\r\n";