majewsky / portunus

Self-contained user/group management and authentication service
GNU General Public License v3.0
75 stars 5 forks source link

Fix errors when editing any user #25

Closed SuperSandro2000 closed 8 months ago

SuperSandro2000 commented 8 months ago

like: field "password" in user "admin" must be equal to the seeded value

Tested by double checking the condition in function ApplyTo on line 380 in seed.go and noticing that hasher.IsWeakHash(hash) always returned true because the hash passed in still contained the {CRYPT} prefix which never matched the preferred hashing algorithm.