Commit 55e960b4 authored by o's avatar o
Browse files

fix account locked token generation

prevent chars which need url escape in unlock tokens. this might
be confusing and also the user interface does not accept it.
parent 197258d4
......@@ -480,7 +480,7 @@ class UserManager
when 'unlock'
u.unlock!
when 'lock'
u.admin_locked = Sodium::Random.ascii(10)
u.admin_locked = Sodium::Random.for_url(10)
u.save!
when 'delete'
u.destroy!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment