Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Photogram Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sanjay 001
Photogram Project
Commits
1c6c1a82
Commit
1c6c1a82
authored
2 years ago
by
Sibidharan
Browse files
Options
Downloads
Patches
Plain Diff
users upgrade
parent
b13675f1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
__migrations.sql
+2
-0
2 additions, 0 deletions
__migrations.sql
libs/includes/User.class.php
+8
-2
8 additions, 2 deletions
libs/includes/User.class.php
with
10 additions
and
2 deletions
__migrations.sql
0 → 100644
+
2
−
0
View file @
1c6c1a82
-- 2 Apr, 2022 Migrations
ALTER
TABLE
`auth`
ADD
`sec_email`
varchar
(
256
)
NULL
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
libs/includes/User.class.php
+
8
−
2
View file @
1c6c1a82
...
...
@@ -46,21 +46,27 @@ class User
{
$this
->
conn
=
Database
::
getConnection
();
$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
setBio
()
public
function
setBio
(
$bio
)
{
//TODO: Write UPDATE command to change new bio
}
public
function
getBio
()
{
//TODO: Write SELECT command to get the bio.
}
public
function
setAvatar
()
public
function
setAvatar
(
$link
)
{
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment