Added by anonymous on 2008-10-23 17:53:55 Download/View
- class Model_User extends Amodel {
- protected $table = 'users';
- protected $table_key = 'id';
- 'display_name' => '',
- 'username' => '',
- 'email' => '',
- 'password' => '',
- 'auth_code' => '',
- 'created_time' => '',
- 'active' => '',
- 'deleted' => '',
- 'banned' => '',
- 'token' => '',
- 'token_expires' => '',
- 'last_active' => '',
- 'admin_login' => '',
- 'logins' => '',
- 'token_user_agent' => ''
- );
- );
- );
- {
- if ($is_update)
- {
- // Don't check for unique username if they didn't change the username
- {
- }
- // We need the create_time for the password salt
- $data['created_time'] = $before['created_time'];
- // The password isn't required for updates
- }
- return $data;
- }
- }