Skip to content
Snippets Groups Projects
Commit 1c6c1a82 authored by Sibidharan's avatar Sibidharan :speech_balloon:
Browse files

users upgrade

parent b13675f1
No related branches found
No related tags found
No related merge requests found
-- 2 Apr, 2022 Migrations
ALTER TABLE `auth` ADD `sec_email` varchar(256) NULL;
\ No newline at end of file
...@@ -46,21 +46,27 @@ class User ...@@ -46,21 +46,27 @@ class User
{ {
$this->conn = Database::getConnection(); $this->conn = Database::getConnection();
$this->conn->query(); $this->conn->query();
$this->username = $username;
//TODO: Write the code to fetch user data from Database for the given username. If username is not present, throw Exception.
$this->id = null; //Update this from database.
} }
public function authenticate() public function authenticate()
{ {
} }
public function setBio() public function setBio($bio)
{ {
//TODO: Write UPDATE command to change new bio
} }
public function getBio() public function getBio()
{ {
//TODO: Write SELECT command to get the bio.
} }
public function setAvatar() public function setAvatar($link)
{ {
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment