Changeset 312:8816f31232a9
- Timestamp:
- 05/24/11 13:10:43 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.auth.php
r270 r312 4 4 # This file is part of Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 1Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 77 77 @param pwd <b>string</b> User password 78 78 @param user_key <b>string</b> User key check 79 @param check_blog <b>boolean</b> checks if user is associated to a blog or not. 79 80 @return <b>boolean</b> 80 81 */ 81 public function checkUser($user_id, $pwd=null, $user_key=null )82 public function checkUser($user_id, $pwd=null, $user_key=null, $check_blog=true) 82 83 { 83 84 # Check user and password … … 141 142 142 143 # Get permissions on blogs 143 if ($ this->findUserBlog() === false) {144 if ($check_blog && ($this->findUserBlog() === false)) { 144 145 return false; 145 146 }
Note: See TracChangeset
for help on using the changeset viewer.