Signed-off-by: Bill Erickson <berickxx@gmail.com>
usr_row actor.usr%ROWTYPE;
BEGIN
/* Migrates legacy actor.usr.passwd value to actor.passwd with
- * a password type 'main' and returns the new salt.
+ * a password type 'main' and returns the new salt. For backwards
+ * compatibility with existing CHAP-style API's, we perform a
+ * layer of intermediate MD5(MD5()) hashing. This is intermediate
+ * hashing is not required of other passwords.
*/
SELECT INTO usr_row * FROM actor.usr WHERE id = pw_usr;