lipsiadmin_generators/backend/templates/controllers/backend/sessions_controller.rb in lipsiadmin-5.1.6 vs lipsiadmin_generators/backend/templates/controllers/backend/sessions_controller.rb in lipsiadmin-5.1.7
- old
+ new
@@ -1,8 +1,8 @@
-# This controller handles the login/logout function of the site.
+# This controller handles the login/logout function of the site.
class Backend::SessionsController < ApplicationController
layout "backend"
-
+
def create
self.current_account = Account.authenticate(params[:email], params[:password])
if logged_in?
redirect_back_or_default(backend_path)
else