auth_changepassword.php - Error

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Kudithipudi
Posts: 11
Joined: Fri Jul 11, 2003 1:58 pm

auth_changepassword.php - Error

Post by Kudithipudi »

Hello guys..
I have a strange problem. I am creating new users who are required to change password on the first login. I am only giving them access to the "graph" console. When the user logs in for the first, he is prompted for a new password, but after entering the new password, they are being directed to the "console" and are getting an "acccess denied" error. Is there something that needs to be changed in "auth_changepassword.php"? thanks much.

- V.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

The change password page was not honoring the "Login Options" setting as it should have. I created the following patch against 'auth_changepassword.php'. You will also see this change in version 0.8.3.

Code: Select all

48,58c48
< 		/* ok, at the point the user has been sucessfully authenticated; so we must
< 		decide what to do next */
< 		switch ($user["login_opts"]) {
< 			case '1': /* referer */
< 				header("Location: " . $_POST["ref"]); break;
< 			case '2': /* default console page */
< 				header("Location: index.php"); break;
< 			case '3': /* default graph page */
< 				header("Location: graph_view.php"); break;
< 		}
< 		
---
> 		header("Location: " . $_POST["ref"]);
-Ian
Kudithipudi
Posts: 11
Joined: Fri Jul 11, 2003 1:58 pm

Thank you..

Post by Kudithipudi »

Thanks for the fix fix rax.. You are just great. How do I apply this patch to the current build? Thanks much.

- V.
Kudithipudi
Posts: 11
Joined: Fri Jul 11, 2003 1:58 pm

Post by Kudithipudi »

I figured it out :).. Thanks much. I cannot say how much I appreciate your efforts on this wonderful program.

- V.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests