Comments (7)
Hey @telkins @caendesilva there was actually a bit of conversation about this in the breezy channel. At the time we deemed it not necessary, but I think this would make sense as a config option.
I am going to review this in my next release!
from filament-breezy.
I was thinking that this should be added as well. Both because it prevents a password from being changed (say if you stay logged in while you leave your desk), but it also prevents against accidental changing.
from filament-breezy.
My solution for this problem:
Custom ProfilePage
[...]
use JeffGreco13\FilamentBreezy\Pages\MyProfile as BaseProfile;
class UserProfile extends BaseProfile
[...]
[...]
protected function getUpdatePasswordFormSchema(): array
{
return [
Forms\Components\TextInput::make('current_password')
->label(__('Current Password'))
->password()
->currentPassword()
->required(),
Forms\Components\TextInput::make('new_password')
->label(__('filament-breezy::default.fields.new_password'))
->password()
->rules([Password::defaults()])
->different('current_password')
->required(),
Forms\Components\TextInput::make('new_password_confirmation')
->label(__('filament-breezy::default.fields.new_password_confirmation'))
->password()
->same('new_password')
->required(),
];
}
public function updatePassword()
{
parent::updatePassword();
$this->reset(['current_password']);
}
[...]
from filament-breezy.
Hey @telkins @caendesilva there was actually a bit of conversation about this in the breezy channel. At the time we deemed it not necessary, but I think this would make sense as a config option. I am going to review this in my next release!
Thx, @jeffgreco13 . Let me know if there's anything I can do to help. 🤓
from filament-breezy.
My solution for this problem:
I think this looks really nice, and since it's so simple and lightweight it shouldn't add much footprint to the package by offering it as a config option in the base class.
from filament-breezy.
Any follow up on this one?
from filament-breezy.
Available in Breezy v2
from filament-breezy.
Related Issues (20)
- Missing CI / Github Actions HOT 1
- Call to a member function getPlugin() on null HOT 3
- Missing string in it lang HOT 3
- Unable to call component method. Public method [submit] not found on component HOT 3
- Config not serializable HOT 4
- Breezy not show in panel at laravel filament fresh install
- 2FA: Filament's Notification and Profile menus are visible before 2FA is completed HOT 2
- Using a custom TwoFactorPage causes a Livewire error
- Breezy tests
- allow modification of sanctum permissions in tenantMiddleware()
- How to reveal the password while typing for update? HOT 1
- Why this code not work when change Force status?
- How to use this code in Two Factor Authentication
- rember 2FA when remember logging in HOT 4
- How can I change the navigation page icon? HOT 7
- Impersonate 2FA Problem
- How to add "revealable" option to password field?
- Bug : User Avatar Doesn't Show in edit profile page HOT 1
- Impersonation, SSO / bypass for specific users
- Logout Users from other devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filament-breezy.