fix(backoffice): mark seeded tool passwords as bcrypt
This commit is contained in:
@@ -27,11 +27,11 @@ merge into sg_tool_user target
|
|||||||
using (
|
using (
|
||||||
select 'sg-teamlead' as user_id, 'SG Demo Team Lead' as user_nm,
|
select 'sg-teamlead' as user_id, 'SG Demo Team Lead' as user_nm,
|
||||||
'TEAM_LEAD' as role_code,
|
'TEAM_LEAD' as role_code,
|
||||||
'$2y$12$esdNRjiRo3ZxBnUGD1xrjuIFjCeCWcxlksDfdZpeImTsVtIdh/IJe' as password_hash
|
'{bcrypt}$2y$12$esdNRjiRo3ZxBnUGD1xrjuIFjCeCWcxlksDfdZpeImTsVtIdh/IJe' as password_hash
|
||||||
from dual
|
from dual
|
||||||
union all
|
union all
|
||||||
select 'sg-member', 'SG Demo Team Member', 'TEAM_MEMBER',
|
select 'sg-member', 'SG Demo Team Member', 'TEAM_MEMBER',
|
||||||
'$2y$12$esdNRjiRo3ZxBnUGD1xrjuIFjCeCWcxlksDfdZpeImTsVtIdh/IJe'
|
'{bcrypt}$2y$12$esdNRjiRo3ZxBnUGD1xrjuIFjCeCWcxlksDfdZpeImTsVtIdh/IJe'
|
||||||
from dual
|
from dual
|
||||||
) source
|
) source
|
||||||
on (target.user_id = source.user_id)
|
on (target.user_id = source.user_id)
|
||||||
@@ -45,4 +45,3 @@ when not matched then insert (user_id, user_nm, role_code, password_hash, enable
|
|||||||
values (source.user_id, source.user_nm, source.role_code, source.password_hash, 'Y');
|
values (source.user_id, source.user_nm, source.role_code, source.password_hash, 'Y');
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user