mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
abc030fa00
Summary: Ref T13043. This moves user account passwords to the new shared infrastructure. There's a lot of code changes here, but essentially all of it is the same as the VCS password logic in D18898. Test Plan: - Ran migration. - Spot checked table for general sanity. - Logged in with an existing password. - Hit all error conditions on "change password", "set password", "register new account" flows. - Verified that changing password logs out other sessions. - Verified that revoked passwords of a different type can't be selected. - Changed passwords a bunch. - Verified that salt regenerates properly after password change. - Tried to login with the wrong password, which didn't work. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13043 Differential Revision: https://secure.phabricator.com/D18903
6 lines
287 B
SQL
6 lines
287 B
SQL
INSERT INTO {$NAMESPACE}_auth.auth_password
|
|
(objectPHID, phid, passwordType, passwordHash, isRevoked,
|
|
dateCreated, dateModified)
|
|
SELECT userPHID, CONCAT('XVCS', id), 'vcs', passwordHash, 0,
|
|
dateCreated, dateModified
|
|
FROM {$NAMESPACE}_repository.repository_vcspassword;
|