Fix password checks on admin create/edit user (#9076)
Fix password checks on admin create/edit user (#9076)

* Fix password checks on admin create/edit user

* Remove incorrect trimspace

cez81/gitea,lafriks/gitea,sapk-fork/gitea,typeless/gitea,cez81/gitea,cez81/gitea,vdbt/gitea,typeless/gitea,go-gitea/gitea,vCaesar/gitea,lafriks/gitea,vCaesar/gitea,sapk-fork/gitea,typeless/gitea,lafriks/gitea,vdbt/gitea,sapk-fork/gitea,sapk-fork/gitea,go-gitea/gitea,typeless/gitea,go-gitea/gitea