Commit a8ce5105 by Kevin Falcone

username is unique and people registered with User-1 as a username

Truncating a hash function is kind of terrible, but this gives us a
unique 30 character string and should avoid conflicts.
parent 56c27e04
......@@ -20,7 +20,7 @@ UPDATE student_passwordhistory
UPDATE auth_user
set
email = concat('success+',cast(id AS CHAR),'@simulator.amazonses.com'),
username = concat('user-',cast(id AS CHAR)),
username = SUBSTRING(SHA1(CONCAT(username,CAST(id as CHAR))) FROM 1 FOR 30),
first_name = concat('user-',cast(id AS CHAR)),
last_name = concat('user-',cast(id AS CHAR)),
last_login = null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment