We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd0b62c + 1ef8373 commit 930d0acCopy full SHA for 930d0ac
app/controllers/entropi_social/user_sessions_controller.rb
@@ -7,19 +7,17 @@ def new
7
end
8
9
def create
10
+
11
authenticate_user!
-
12
13
if user_signed_in?
- respond_to do |format|
14
- format.html {
15
- flash[:notice] = I18n.t("devise.sessions.signed_in")
16
- redirect_to(root_path)
17
- }
18
- end
+ flash[:notice] = I18n.t("devise.sessions.signed_in")
+ redirect_to(root_path)
19
else
20
flash[:error] = I18n.t("devise.failure.invalid")
21
render :new
22
23
24
25
def destroy
0 commit comments