-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[10] auth_admin_passkey Fix Issue #1227 #1228
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
Conversation
avoid server errors if empty value for config params.
fix for getting current value I'm sure there can be a better way to get them.
|
Please change module version number according https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md#version-numbers And check travis status |
|
Version number change will create another PR, is this OK ? Regarding the travis status I can't find errors related to this module, it complains about other modules like auth_brute_force , auth_user_case_insensitive and other modules. Sorry but I'm new in contributing to OSS projects using github. |
|
@mohamedhagag no, adding version number doesn't create other PR if you do it through git, not via GitHub interface. And the Travis errores are yours: |
|
@pedrobaeza would you plz chk and merge. |
|
This is not how it works. Check https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md for the general rules. It requires at least 2 reviews, and a way to get reviews is to make another reviews and ask in return to review yours. |
|
|
||
| auth_admin_passkey_send_to_user = fields.Boolean( | ||
| string='Send email to user.', | ||
| help="""When the administrator use his password to login in """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
- you moved a lot of code, that make the diff quite hard to review. I don't see the reason of that ?
- I think adding triple quote is unnecessary.
Other it looks great for me !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree it is a good idea to get rid of the triple quotes. They were introduced in the fix for 8.0.
|
I think the latest two commits, using the string 'False' instead of an empty string when setting the parameters, and then testing for string 'True' or '1' when getting the parameters is not needed. The second commit fixes an error introduced by the first commit. Setting the parameter to an empty string effectively sets it to a False or rather falsey value. So original code as now existing in 8.0 just should work IMHO. |
|
are there any updates ? The issue is still there. |
|
superseeded by #1720 |
Syncing from upstream OCA/server-tools (16.0)
this is a fix for issue:
#1227
based on the PR by akretion for 8 and 9 here:
#519