Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Commit

Permalink
fix for #188
Browse files Browse the repository at this point in the history
  • Loading branch information
BuffaloWill committed Sep 29, 2016
1 parent c72ac04 commit e70ac1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
user = User.first(:username => params[:username])

if user
if params[:password]
if params[:password] and params[:password].size > 1
# we have to hardcode the input params to prevent param pollution
user.update(:type => params[:type], :auth_type => params[:auth_type], :password => params[:password])
else
Expand Down

0 comments on commit e70ac1b

Please sign in to comment.