lobby 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,14 +10,14 @@ module Lobby
|
|
10
10
|
if @user.active?
|
11
11
|
session[:user_id] = @user.id
|
12
12
|
flash.now[:success] = t( '.flash.success' )
|
13
|
-
redirect_to
|
13
|
+
redirect_to root_path
|
14
14
|
else
|
15
15
|
flash.now[:danger] = t( '.flash.error.not_active' )
|
16
|
-
redirect_to
|
16
|
+
redirect_to log_in_path
|
17
17
|
end
|
18
18
|
else
|
19
19
|
flash.now[:danger] = t( '.flash.error.not_confirmed' )
|
20
|
-
redirect_to
|
20
|
+
redirect_to confirm_path( :action => "registration" )
|
21
21
|
end
|
22
22
|
else
|
23
23
|
flash.now[:danger] = t( '.flash.error.wrong_password_or_email' )
|
@@ -27,7 +27,7 @@ module Lobby
|
|
27
27
|
|
28
28
|
def destroy
|
29
29
|
session[:user_id] = nil
|
30
|
-
redirect_to
|
30
|
+
redirect_to root_path, flash: {success: t( '.success' ) }
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
data/lib/lobby/version.rb
CHANGED
data/lib/lobby/version.rb~
CHANGED