You are not logged in.
Pages: 1
I previously used the TAuthUser.ComputeHashedPassword changed to set the default password, but now this method has changed from public to protected, which makes it impossible to set the default password. Could you please suggest a solution?
AuthAdminDefaultPassword:=TAuthUser.ComputeHashedPassword('Admin',setting.AdminDefaultPwd);
Offline
I inherited a subclass from TauthUser, and then made the computeHashedPassword method public, which solved the problem.
Offline
In order to initialize the global variable: AuthAdminDefaultPassword, set the initial password before calling the createMissingTable function.
Offline
I forgot about this usage - which is IMHO unsafe: you should better override the TAuthGroup.InitializeTable() method, for any serious work.
I have made it public again.
https://github.com/synopse/mORMot2/commit/1658da7d1
Offline
Thank you for your work
Offline
Pages: 1