Skip to content

Commit d6453eb

Browse files
authored
Use instance variable
1 parent d75afa6 commit d6453eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/user_service/enroll_sms_auth.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class SMSEnrollmentError < StandardError
5454
end
5555

5656
def disallow_fresh_users
57-
return if user.created_at < 1.day.ago
57+
return if @user.created_at < 1.day.ago
5858

5959
raise SMSEnrollmentError("Please wait at least 24 hours after creating your account before enrolling in SMS authentication.")
6060
end

0 commit comments

Comments
 (0)