Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8026 Posts in 1851 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Administrator can be changed  (Read 491 times)
0 Members and 1 Guest are viewing this topic.
John
Guest
« on: April 05, 2005, 11:32:00 AM »

I created a profile for a person to manage the calendar, they have permission to change/reset a lost password. While testing I also found that they could change the Administrator password (mine). I don't think thay should be able t change the administrator password!

The method to change the password is:
Select Edit/Delete Users
Edit Administrator
Change password

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: April 05, 2005, 01:44:00 PM »

** I don't think they should be able to change the administrator password! **

You're probably right however if that password was ever lost, it might be difficult to set a new one?

If you want to change the script's functioning in that regard though:

1. Open the edit_delete_users.html file.

2. Find the line:
foreach $record (sort { $a->{'username'} cmp $b->{'username'} } @$users) {

3. Try ADDING this line directly after the above one:

code:
next if ($record->{'username'} eq "Administrator");

Which should skip printing of the form buttons for the Administrator's record altogether.

Let us know if it solves your dilemma.

Dan O.

[This message has been edited by DanO (edited September 10, 2006).]

Logged
Pages: [1]   Go Up
Print
Jump to: