From 4e3d2b5306c5b5db490fc6a5df974675527e9572 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 9 Feb 2015 13:19:52 +0100 Subject: [PATCH] Added missing integer conversion. --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 84ab2adaf..546879a55 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -702,7 +702,7 @@ curl http://localhost/api/v1/users/avatar -v -u #{login}:#{password} -H "Content private def password_policy(password) - if Setting.get('password_min_size') > password.length + if Setting.get('password_min_size').to_i > password.length return ["Can\'t update password, it must be at least %s characters long!", Setting.get('password_min_size')] end if Setting.get('password_need_digit').to_i == 1 && password !~ /\d/