HashPassword
This page was created by Hans.karlsen@mdriven.net on 2018-08-02. Last edited by Edgar on 2025-01-20.

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.

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
x