kopia lustrzana https://github.com/pixelfed/pixelfed
Update RegisterController, store client ip during registration
rodzic
33e6cf26d2
commit
d4c967de98
|
@ -163,6 +163,7 @@ class RegisterController extends Controller
|
|||
'username' => $data['username'],
|
||||
'email' => $data['email'],
|
||||
'password' => Hash::make($data['password']),
|
||||
'app_register_ip' => request()->ip()
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class User extends Authenticatable
|
|||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name', 'username', 'email', 'password',
|
||||
'name', 'username', 'email', 'password', 'app_register_ip'
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Ładowanie…
Reference in New Issue