Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
5fe7200a
Commit
5fe7200a
authored
12 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
update documentation of oc_user::checkpassword
parent
2c99924f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/user.php
+2
-1
2 additions, 1 deletion
lib/user.php
lib/user/database.php
+2
-1
2 additions, 1 deletion
lib/user/database.php
lib/user/dummy.php
+2
-1
2 additions, 1 deletion
lib/user/dummy.php
lib/user/example.php
+2
-1
2 additions, 1 deletion
lib/user/example.php
with
8 additions
and
4 deletions
lib/user.php
+
2
−
1
View file @
5fe7200a
...
...
@@ -304,9 +304,10 @@ class OC_User {
* @brief Check if the password is correct
* @param $uid The username
* @param $password The password
* @returns tr
ue/false
* @returns
s
tr
ing
*
* Check if the password is correct without logging in the user
* returns the user id or false
*/
public
static
function
checkPassword
(
$uid
,
$password
){
foreach
(
self
::
$_usedBackends
as
$backend
){
...
...
This diff is collapsed.
Click to expand it.
lib/user/database.php
+
2
−
1
View file @
5fe7200a
...
...
@@ -117,9 +117,10 @@ class OC_User_Database extends OC_User_Backend {
* @brief Check if the password is correct
* @param $uid The username
* @param $password The password
* @returns tr
ue/false
* @returns
s
tr
ing
*
* Check if the password is correct without logging in the user
* returns the user id or false
*/
public
function
checkPassword
(
$uid
,
$password
){
$query
=
OC_DB
::
prepare
(
"SELECT uid, password FROM *PREFIX*users WHERE uid = ?"
);
...
...
This diff is collapsed.
Click to expand it.
lib/user/dummy.php
+
2
−
1
View file @
5fe7200a
...
...
@@ -81,9 +81,10 @@ class OC_User_Dummy extends OC_User_Backend {
* @brief Check if the password is correct
* @param $uid The username
* @param $password The password
* @returns tr
ue/false
* @returns
s
tr
ing
*
* Check if the password is correct without logging in the user
* returns the user id or false
*/
public
function
checkPassword
(
$uid
,
$password
){
if
(
isset
(
$this
->
users
[
$uid
])){
...
...
This diff is collapsed.
Click to expand it.
lib/user/example.php
+
2
−
1
View file @
5fe7200a
...
...
@@ -66,9 +66,10 @@ abstract class OC_User_Example extends OC_User_Backend {
* @brief Check if the password is correct
* @param $uid The username
* @param $password The password
* @returns tr
ue/false
* @returns
s
tr
ing
*
* Check if the password is correct without logging in the user
* returns the user id or false
*/
public
function
checkPassword
(
$uid
,
$password
){
return
OC_USER_BACKEND_NOT_IMPLEMENTED
;
...
...
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