summaryrefslogtreecommitdiff
path: root/src/lib/User.class.php
blob: c1888b5e14112ea3ed85d297b485def5f66d73f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
require_once('Auth.class.php');

class User extends Auth {
	public function __construct($uid) {
		parent::__construct($uid);
	}
	public function getUID() {
		return $this->uid;
	}
	
	/**********************************************************************\
	 * The 'auth' table.                                                  *
	\**********************************************************************/
	
	public function setPassword($password) {
		if (!$this->canEdit()) return false;
		return $this->mm->setPassword($this->uid, $password);
	}
	
	/**********************************************************************\
	 * The 'users' table.                                                 *
	\**********************************************************************/
	
}