Switch user status to enum
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
Dan Milne
2025-10-23 20:24:19 +11:00
parent 91573ee2b9
commit 7f075391c1
6 changed files with 146 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ class SessionsController < ApplicationController
end
# Check if user is active
unless user.status == "active"
unless user.active?
redirect_to signin_path, alert: "Your account is not active. Please contact an administrator."
return
end