Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
949d7b33
Commit
949d7b33
authored
Nov 24, 2014
by
Björn Schießle
Browse files
Merge pull request #12391 from owncloud/fix_12361
use login name to verify password
parents
ddacd7f9
1645c8f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/files_encryption/ajax/updatePrivateKeyPassword.php
View file @
949d7b33
...
...
@@ -26,9 +26,10 @@ $newPassword = $_POST['newPassword'];
$view
=
new
\
OC\Files\View
(
'/'
);
$session
=
new
\
OCA\Encryption\Session
(
$view
);
$user
=
\
OCP\User
::
getUser
();
$loginName
=
\
OC
::
$server
->
getUserSession
()
->
getLoginName
();
// check new password
$passwordCorrect
=
\
OCP\User
::
checkPassword
(
$
user
,
$newPassword
);
$passwordCorrect
=
\
OCP\User
::
checkPassword
(
$
loginName
,
$newPassword
);
if
(
$passwordCorrect
!==
false
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment