Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php
  2. class User {
  3.     public $ID;
  4.     public $Username;
  5.     public $Email;
  6.     public $Password;
  7.  
  8.     public function  __construct($Params) {
  9.         $this->ID = $Params['ID'];
  10.         $this->Username = $Params['Username'];
  11.         $this->Email = $Params['Email'];
  12.         $this->Password = $Params['Password'];
  13.     }
  14.  
  15.     public function Save() {
  16.         // Save user information in Database
  17.     }
  18.  
  19.     public function NewPassword($NewPass) {
  20.         // Do the new password encryption stuff...
  21.         $NewSalt = Encryption::RandomKey(128);
  22.  
  23.     }
  24. }
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement