]> source.dussan.org Git - gitea.git/commit
[Refactor] Passwort Hash/Set (#14282)
author6543 <6543@obermui.de>
Sun, 10 Jan 2021 18:05:18 +0000 (19:05 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Jan 2021 18:05:18 +0000 (20:05 +0200)
commit74a0481586b7035bbe7a82f6e7e275cdd87d382a
tree1e0a0c40619529bcc2c32ceaf007fafc0f565dfd
parent6b3b6f1833d07383d24d68ec220a18315ac36809
[Refactor] Passwort Hash/Set (#14282)

* move SaltGeneration into HashPasswort and rename it to what it does

* Migration: Where Password is Valid with Empty String delete it

* prohibit empty password hash

* let SetPassword("") unset pwd stuff
cmd/admin.go
models/login_source.go
models/migrations/migrations.go
models/migrations/v166.go [new file with mode: 0644]
models/user.go
models/user_test.go
routers/admin/users.go
routers/api/v1/admin/user.go
routers/user/auth.go
routers/user/setting/account.go