mirror of https://github.com/sipwise/db-schema.git
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: I668e32265c5e3f0f4907ddba0f9546fafdb8acddchanges/53/38753/4
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…
Reference in new issue