Class: Defcon::AdminUser

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/defcon/admin_user.rb

Instance Method Summary collapse

Instance Method Details

#locked_out?Boolean

Returns:

  • (Boolean)


10
11
12
13
14
15
16
17
18
19
# File 'app/models/defcon/admin_user.rb', line 10

def locked_out?
	if self.max_attempts.nil?
			return false
		end
		if self.attempts > self.max_attempts 
			return true
		else
			return false
		end
end