aboutsummaryrefslogtreecommitdiff
path: root/src/actions/mixins/auth/password_resets/token_from_session.cr
blob: 820b91bc8f51fe20229001773bcc577c49f289d7 (plain)
1
2
3
4
5
module Auth::PasswordResets::TokenFromSession
  private def token : String
    session.get?(:password_reset_token) || raise "Password reset token not found in session"
  end
end