app/controllers/mtwarden/account/sessions_controller.rb in mtwarden-6.0.0 vs app/controllers/mtwarden/account/sessions_controller.rb in mtwarden-6.0.1
- old
+ new
@@ -1,20 +1,20 @@
-require_dependency "mtwarden/application_controller"
-
-module Mtwarden
- class Account::SessionsController < Mtwarden::ApplicationController
- def new
- @user = User.new
- end
-
- def create
- if env["warden"].authenticate(:scope => :user)
- flash[:success] = "You are now signed in."
- redirect_to root_path
- else
- @user = User.new
- flash[:error] = "Invalid email or password."
- render :action => "new"
- end
- end
- end
-end
+require_dependency "mtwarden/application_controller"
+
+module Mtwarden
+ class Account::SessionsController < Mtwarden::ApplicationController
+ def new
+ @user = User.new
+ end
+
+ def create
+ if env["warden"].authenticate(:scope => :user)
+ flash[:success] = "You are now signed in."
+ redirect_to root_path
+ else
+ @user = User.new
+ flash[:error] = "Invalid email or password."
+ render :action => "new"
+ end
+ end
+ end
+end