Project

General

Profile

Actions

Bug #467

closed

dbschema upgrade script does not encrypt the default password

Added by Anchi Cheng about 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Eric Hou
Category:
-
Target version:
Start date:
05/12/2010
Due date:
% Done:

100%

Estimated time:
Affected Version:
Show in known bugs:
Workaround:

Description

In schema-r12857, the default password need to be encrypted or the user will not be able to log in and change the password to what they want. How to do this so that it works the same as the one php sees?

Actions #1

Updated by Anchi Cheng about 14 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Neil Voss to Amber Herold
  • % Done changed from 0 to 100

r13889 added md5 as the password is inserted.

Test:
1. use pre r12857 database
2. go through upgrade process starting from the steps in
http://emg.nysbc.org/projects/leginon/wiki/How_to_Update_from_v16_(Linux)#Install_updated_Web_viewers_and_tools
3. after running python script schema-r12857, check the database to see if encrypted passwords are generated.
4. enable login in the myamiweb and try to use the default password for an existing user such as administrator.

Actions #2

Updated by Amber Herold about 14 years ago

  • Status changed from In Code Review to In Test
Actions #3

Updated by Amber Herold almost 14 years ago

  • Assignee changed from Amber Herold to Eric Hou
Actions #4

Updated by Eric Hou almost 14 years ago

  • Status changed from In Test to Closed

it works great!
Just need to know the password for each user is same as username if user didn't able the log in before.

Thanks.

Eric

Actions

Also available in: Atom PDF