From 9f108dd1a969473375341d92a7b1252fa2cedc9a Mon Sep 17 00:00:00 2001 From: mszulecki Date: Thu, 14 Jun 2007 17:09:01 +0000 Subject: Initial import. git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- lib/model/User.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lib/model/User.php (limited to 'lib/model/User.php') diff --git a/lib/model/User.php b/lib/model/User.php new file mode 100644 index 0000000..693aeb7 --- /dev/null +++ b/lib/model/User.php @@ -0,0 +1,36 @@ +getNickname().$this->getFirstName()); + $this->setSalt($salt); + $this->setSha1Password(sha1($salt.$password)); + } + + public function setPassword2($password) + { + if($password!='') + $this->setPassword($password); + } + + public function getFullName() + { + return $this->getFirstName()." ".$this->getLastName(); + } + + public function __toString() + { + return $this->getNickname(); + } +} -- cgit v1.1-32-gdbae