Changeset 3586

Show
Ignore:
Timestamp:
10/10/2008 05:38:33 PM (8 weeks ago)
Author:
PugFish
Message:

Fixing backwards compatibility break introduced in r3573, thanks xobb

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/2.2.1/modules/auth/models/auth_user.php

    r3585 r3586  
    3333                        ->pre_filter('trim') 
    3434                        ->add_rules('email', 'required', 'length[4,127]', 'valid::email') 
    35                         ->add_rules('username', 'required', 'length[4,32]', 'chars[a-zA-Z0-9_.]', array($this, 'username_available')) 
     35                        ->add_rules('username', 'required', 'length[4,32]', 'chars[a-zA-Z0-9_.]', array($this, 'username_exists')) 
    3636                        ->add_rules('password', 'required', 'length[5,42]') 
    3737                        ->add_rules('password_confirm', 'matches[password]'); 
     
    122122         * @return  boolean 
    123123         */ 
    124         public function username_available($id) 
     124        public function username_exists($id) 
    125125        { 
    126126                return ! $this->db