Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mikker authored Sep 18, 2024
1 parent c5b0bc5 commit d8d4d29
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,10 @@ class SessionsController < Passwordless::SessionsController

private

def require_unauth!
unless @current_user.nil?
redirect_to "/", notice: "You are already signed in."
end
end
def require_unauth!
return unless current_user
redirect_to("/", notice: "You are already signed in.")
end
end
```

Expand Down

0 comments on commit d8d4d29

Please sign in to comment.