Hans Karlsen (talk | contribs) No edit summary |
Hans Karlsen (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
SysUser must also have an attribute Email:string(?) in .net core since the underlying pwd salt uses the email. | SysUser must also have an attribute Email:string(?) in .net core since the underlying pwd salt uses the email. | ||
NOTE: When you run with codedress - you should leave Body empty for ExternalLateBound methods - if not empty this will be executed instead of ExternalOverride. Leaving it empty will force the codegen to create a stub - but this will be ignored for ExternalLateBound. Mind that you may need to add return statements etc to the stub to make it compile. | '''NOTE''': When you run with codedress - you should '''leave Body empty''' for ExternalLateBound methods - if not empty this will be executed instead of ExternalOverride. Leaving it empty will force the codegen to create a stub - but this will be ignored for ExternalLateBound. Mind that you may need to add return statements etc to the stub to make it compile. | ||
These methods must have Tagged Value Eco.ExternalLateBound on them - set any value - we only check existence | These methods must have Tagged Value Eco.ExternalLateBound on them - set any value - we only check existence |
Revision as of 16:31, 20 May 2020
In order to Hash and Validate Turnkey passwords you must add two ExternalLateBound methods to SysUser.
HashPassword(pwd:String):String VerifyHashedPassword(hash:String; pwd:String):Integer
SysUser must also have an attribute Email:string(?) in .net core since the underlying pwd salt uses the email.
NOTE: When you run with codedress - you should leave Body empty for ExternalLateBound methods - if not empty this will be executed instead of ExternalOverride. Leaving it empty will force the codegen to create a stub - but this will be ignored for ExternalLateBound. Mind that you may need to add return statements etc to the stub to make it compile.
These methods must have Tagged Value Eco.ExternalLateBound on them - set any value - we only check existence
The VerifyHashedPassword returns an integer that is defined as:
Failed = 0, Success = 1, SuccessRehashNeeded = 2