TT#76658 Move default administrator pass from MD5 to bcrypt

The using of MD5() for password was outdated and there is an appropriate
warning in ngcp-status.
So change the default password to salted one. Unfortunately Mariadb
doesn't provide bcrypt() function so use the prepared string.

Change-Id: I668e32265c5e3f0f4907ddba0f9546fafdb8acdd
changes/53/38753/4
Mykola Malkov 5 years ago
parent 53d311b294
commit b18e735af1

@ -0,0 +1,10 @@
USE billing;
UPDATE admins
SET
saltedpass = 'AtAFGhepIuEaQ.dSfdJ6b.$TNfqchYY76HTh2FAgD3l4r9JFYmFr9i',
md5pass = NULL
WHERE
login = 'administrator'
AND md5pass = MD5('administrator')
AND saltedpass IS NULL;
Loading…
Cancel
Save