remyla/damas-core

auto-switch between md5/sha1

axl-pis opened this issue · 0 comments

We used two hash method for the password (md5 and sha1) defined in conf.json :

            "conf": {
                "required": false,
                "passwordHashAlgorithm": "sha1",
                "secret": "webtokensecret",

The problem : how identify current a user who has a hash method password md5 if "passwordHashAlgorithm": "sha1" on conf.json ?

The solution : would be to test if the hash method are md5 or sha1 for a current user.