Changeset View
Changeset View
Standalone View
Standalone View
src/app/AuthAttempt.php
Show All 11 Lines | |||||
* A AuthAttempt is any a authAttempt from any application/client. | * A AuthAttempt is any a authAttempt from any application/client. | ||||
*/ | */ | ||||
class AuthAttempt extends Model | class AuthAttempt extends Model | ||||
{ | { | ||||
use NullableFields; | use NullableFields; | ||||
// Password mismatch | // Password mismatch | ||||
public const REASON_PASSWORD = 'password'; | public const REASON_PASSWORD = 'password'; | ||||
// Geolocation not in whitelist | |||||
public const REASON_GEOLOCATION = 'geolocation'; | |||||
protected $nullable = [ | protected $nullable = [ | ||||
'reason', | 'reason', | ||||
]; | ]; | ||||
protected $fillable = [ | protected $fillable = [ | ||||
'ip', | 'ip', | ||||
'user_id', | 'user_id', | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |