-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inputSecret value attribute #820
Comments
…ht send passwords or password hashes to the client
…inputSecret because it might send passwords or password hashes to the client
Good point! Security issues should be dealt with first, so that's what I did. I'll upload the new developer snapshot of BootsFaces 1.1.2 later this evening. I know it's demanding too much, but if you have the opportunity to test the Saturday, that'd be great, because we plan to publish BootsFaces 1.1.2 this week-end. |
I've just uploaded the developer snapshot of BootsFaces 1.1.2 to Maven Central. See #369 on how to get it. I'll close this ticket now because I believe it to be fixed, but I keep listening to it. If something's wrong, just post your comments here. Thanks in advance |
It works in snapshot, the value doesn't show up. It came up because i have a form with user data and password together, and setter looks like this: public void setPassword(String password) {
this.password = BCrypt.hashpw(password, BCrypt.gensalt());
} And now I have Thanks! |
There's always the option to modify your setter like this: public void setPassword(String password) {
if (null != password) {
this.password = BCrypt.hashpw(password, BCrypt.gensalt());
}
} |
Hi, I have concern about how
inputSecret
works now.In documentation there is:
Problem is that it shows the hashed password in a field value. It probably should only set value to bean if the field was filled, but not set
value
attribute back to browser.Reproduce:
<b:inputSecret value="#{userView.user.password}" label="password"/>
Will render field with hashed password:
Expected: input without
value
attributeBootsFaces Version(s): 1.1.1 (current)
The text was updated successfully, but these errors were encountered: