mirror of
https://github.com/anna-sara/filament_inventory
synced 2025-10-26 23:47:13 +01:00
is_admin added to User model, reset password added to login
This commit is contained in:
parent
62e5d20d58
commit
d11c5b746f
3 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,6 @@ class UserResource extends Resource
|
||||||
->email()
|
->email()
|
||||||
->required()
|
->required()
|
||||||
->maxLength(255),
|
->maxLength(255),
|
||||||
DateTimePicker::make('email_verified_at')
|
|
||||||
->translateLabel(),
|
|
||||||
TextInput::make('password')
|
TextInput::make('password')
|
||||||
->translateLabel()
|
->translateLabel()
|
||||||
->password()
|
->password()
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ class User extends Authenticatable
|
||||||
'name',
|
'name',
|
||||||
'email',
|
'email',
|
||||||
'password',
|
'password',
|
||||||
|
'is_admin'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ class AdminPanelProvider extends PanelProvider
|
||||||
->widgets([
|
->widgets([
|
||||||
Widgets\AccountWidget::class,
|
Widgets\AccountWidget::class,
|
||||||
])
|
])
|
||||||
|
->passwordReset()
|
||||||
->middleware([
|
->middleware([
|
||||||
EncryptCookies::class,
|
EncryptCookies::class,
|
||||||
AddQueuedCookiesToResponse::class,
|
AddQueuedCookiesToResponse::class,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue