parent
53ae35d75f
commit
5b5d1f32b7
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
class SessionsController < ApplicationController
|
||||
require_unregistered_user only: %i[new create]
|
||||
rate_limit to: 5, within: 1.minute, only: :create, with: -> { redirect_to new_session_url, alert: "Cannot currently login" }
|
||||
# GET /sessions/new
|
||||
def new
|
||||
@session = Session.new
|
||||
|
|
Loading…
Reference in a new issue