-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
allow admin to enforce password on mail shares #4303
Conversation
@schiessle, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rullzer, @blizzz and @ChristophWurst to be potential reviewers. |
apps/sharebymail/appinfo/app.php
Outdated
@@ -19,6 +19,7 @@ | |||
* | |||
*/ | |||
|
|||
$settings = new \OCA\ShareByMail\Settings(); | |||
$settings = new \OCA\ShareByMail\Settings(new \OCA\ShareByMail\Settings\SettingsManager(\OC::$server->getConfig())); |
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 would prefer to let the DI container build the object if possible and use it like OC::$server->query(SettingsManager::class)
.
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.
done
conflicting |
b11610b
to
0de0d15
Compare
I just did a rebase and resolved the merge conflicts but couldn't test it afterwards. Hope that nothing breaks... Will test tomorrow. ...Tested everything still works 😃 |
3428027
to
bd90ac4
Compare
Codecov Report
@@ Coverage Diff @@
## master #4303 +/- ##
=========================================
Coverage ? 54.15%
Complexity ? 21629
=========================================
Files ? 1327
Lines ? 82710
Branches ? 1305
=========================================
Hits ? 44790
Misses ? 37920
Partials ? 0
|
bd90ac4
to
21e8db4
Compare
@schiessle Could you please fix the emails, thanks :) |
21e8db4
to
3730fb7
Compare
changed to new mail template... please review. Thanks! |
You need the bruteforcesettings app cloned in you apps folder. It is shipped in the release tar ball and automatically enabled. ;) |
@MorrisJobke Thanks for the hint :D I can't find the password policy settings, thought they might have been shifted from additional settings to security but i was wrong... do i need some other apps enabled? Have these settings been removed for NC12? |
But of course we shouldn't show a empty security section, even if the app is shipped and enabled by default. Admins can disable it at any time. @supremesyntax can you create a separate issue for it? Thank. |
@rullzer @MorrisJobke @nickvergessen @ChristophWurst can we please do a final review and get this in? I don't want to rebase, adjust the code and test it over and over again (which will happen again once #4384 is merged) Thanks a lot! 😃 |
5eb0cda
to
0ac94b1
Compare
0ac94b1
to
48d56cb
Compare
Don't worry - I fixed it for you 😉 Let me test it now. |
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.
Rebased, fixed a typo, and tested 👍 Works
Could somebody please answer my question? Maybe y'all overlooked it 😄
|
@supremesyntax if you have the password policy app enabled they should show up (in 12 they will be moved to the security settings btw). |
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.
Ok lets do this!
@supremesyntax it will, but only with the password policy app we will release together with Nextcloud 12, the current version in Nextcloud 11 doesn't expose the policy to other apps. |
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
…word before the admin started to enforce the password Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
613c85b
to
6c294c3
Compare
Allow the admin to enforce passwords on share by mails.
That's my conclusion out if this discussion for now: #2357 (comment)
Possible scenarios and the corresponding workflow
Scenario 1:
Admin checks the "enforce password" in the mail share settings, everything else stays the default:
Users can change the password at any time but they can't disable it. Changing the password will trigger a new mail to the recipient with the new password.
Scenario 2
Admin checks "enforce password" in the mail share settings and disables the password mail:
Users can change the password at any time but they can't disable it, no additional mail will be send.
Scenario 3
Admin checks "enforce password" in the mail share settings, disables the password mail and the user who creates the share has no email address (really unlikely combination but it can still happen):
I like the workflow, especially in scenario 1 which is probably ~70% or all use cases, maybe 29% will have a setup as in scenario 2 which I think works still quite well and probably around 1% will be confronted with scenario 3. In this rare case you could even argue that it is good to remember people to set a valid email address because they will also need it in case they lose their password or for other tasks.
Reviews? Opinions?
Note: that I don't have a lot of extra time I can put into this feature. Complete re-designs are out-of-scope for now. Either we take this one with small adjustments or nothing for Nc12 (at least nothing I implement 😉 )
cc @rullzer @MorrisJobke @jancborchardt