Fix params are passed like string so we should add the string "1" as True for the option disable email
Sébastien BEAU
committed Jun 23, 2017
commit 0f4bb5485a3b33720cc105e330e2adae83af5eb3
Showing 1
changed file with
1 additions
and 1 deletions
locomotive/steam/middlewares/auth.rb b/lib/locomotive/steam/middlewares/auth.rb
+1
-1
| @@ | @@ -179,7 +179,7 @@ module Locomotive::Steam |
| end | |
| def disable_email | |
| - | [1, 'true', true].include?(params[:auth_disable_email]) |
| + | [1, '1', 'true', true].include?(params[:auth_disable_email]) |
| end | |
| def entry | |