Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Signup {
- // Properties associated with the user registration form
- protected $username;
- protected $email;
- protected $password;
- public function __construct($username, $email, $password)
- {
- $this->username = $username;
- $this->email = $email;
- $this->hashPass($password);
- }
- // Create and store a hash from the user's submitted password
- protected function hashPass($password)
- {
- $this->password = password_hash($password, PASSWORD_DEFAULT);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement