Dotclear

Changeset 312:8816f31232a9


Ignore:
Timestamp:
05/24/11 13:10:43 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
default
Message:

Blog association is now optional when whecking a user in dcAuth. Closes #1091

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.auth.php

    r270 r312  
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    7777     @param    pwd       <b>string</b>       User password 
    7878     @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. 
    7980     @return   <b>boolean</b> 
    8081     */ 
    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) 
    8283     { 
    8384          # Check user and password 
     
    141142           
    142143          # Get permissions on blogs 
    143           if ($this->findUserBlog() === false) { 
     144          if ($check_blog && ($this->findUserBlog() === false)) { 
    144145               return false; 
    145146          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map