Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
b86e124e
Commit
b86e124e
authored
10 years ago
by
Christopher Schäpers
Browse files
Options
Downloads
Patches
Plain Diff
Warn user on resetting passwords via occ when encryption is enabled
parent
79fa2bc3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/command/user/resetpassword.php
+10
-0
10 additions, 0 deletions
core/command/user/resetpassword.php
with
10 additions
and
0 deletions
core/command/user/resetpassword.php
+
10
−
0
View file @
b86e124e
...
...
@@ -48,6 +48,16 @@ class ResetPassword extends Command {
if
(
$input
->
isInteractive
())
{
/** @var $dialog \Symfony\Component\Console\Helper\DialogHelper */
$dialog
=
$this
->
getHelperSet
()
->
get
(
'dialog'
);
if
(
\OCP\App
::
isEnabled
(
'files_encryption'
))
{
$output
->
writeln
(
'<error>Warning: Resetting the password when using encryption will result in data loss!</error>'
);
if
(
!
$dialog
->
askConfirmation
(
$output
,
'<question>Do you want to continue?</question>'
,
true
))
{
return
1
;
}
}
$password
=
$dialog
->
askHiddenResponse
(
$output
,
'<question>Enter a new password: </question>'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment