MyTetra Share
Делитесь знаниями!
Пароль по умолчанию
Время создания: 29.10.2019 11:46
Раздел: INFO - Development - CUBA
Запись: wwwlir/Tetra/master/base/1572320765bcy7qk29o9/text.html на raw.githubusercontent.com

So if your admin user has ID = ‘60885987-1b61-4247-94c7-dff348347f93’ (which is the default), then set PASSWORD to ‘cc2229d1b8a052423d9e1c9ef0113b850086586a’ and you will be able to log in with admin/admin credentials.



Update: if a project was bootstrapped on CUBA 7 (PASSWORD_ENCRYPTION=‘bcrypt’) use the following hash
$2a$10$vQx8b8B7jzZ0rQmtuK4YDOKp7nkmUCFjPx6DMT.voPtetNHFOsaOu

p.s. don’t forget to change admin password after recovery



app.properties

cuba.security.rolesPolicyVersion = 1

cuba.security.defaultPermissionValuesConfigEnabled = true

cuba.security.minimalRoleIsDefault = false



Скрипт создания


insert into SEC_USER (ID, CREATE_TS, VERSION, LOGIN, LOGIN_LC, PASSWORD, PASSWORD_ENCRYPTION, NAME, GROUP_ID, ACTIVE)

values ('60885987-1b61-4247-94c7-dff348347f93', now(), 0, 'admin', 'admin',

'$2a$10$vQx8b8B7jzZ0rQmtuK4YDOKp7nkmUCFjPx6DMT.voPtetNHFOsaOu', 'bcrypt',

'Administrator', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', true)^

 
MyTetra Share v.0.65
Яндекс индекс цитирования