Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


(7 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

ATutor Bug Reports

Cannot Edit Profile


You must be signed-in to post.

AuthorSubject
  Page: 1
george
Subject: Cannot Edit ProfileQuote this post in your reply
Although new users can register, none of the users can change their profile. Same applies to admin. Error message is "You must supply a password" - of course I have done so (twice).
System Info:

Atutor Version 1.1
Linux - RH 8
Apache 2.0.45
mysql 4.0.13
php 4.3.2
zlib 1.1.4

using IE 6 SP1

I am admin
Any suggestions?
Posted: 2003-06-30 21:30:18
greg

Avatar for greg
Subject: Register Globals is OffQuote this post in your reply
replace lines 35 - 43 in users/edit.php
// password check
if ($password == '') {
$errors[] =AT_ERROR_PASSWORD_MISSING;
}
// check for valid passwords
if ($password != $password2){
$valid= 'no';
$errors[]=AT_ERROR_PASSWORD_MISMATCH;
}

with:
// password check
if ($_POST['password'] == '') {
$errors[] = AT_ERROR_PASSWORD_MISSING;
}
// check for valid passwords
if ($_POST['password'] != $_POST['password2']){
$errors[] = AT_ERROR_PASSWORD_MISMATCH;
}
Posted: 2003-06-30 22:51:21
 Page: 1

You must be signed-in to post.