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
dharaneesh . r ravi
photogram project
Commits
2894a62a
Commit
2894a62a
authored
1 year ago
by
dharaneesh . r ravi
Browse files
Options
Downloads
Patches
Plain Diff
implementation of user in RDBMS
parent
5d91c9a7
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
__migration.sql
+49
-0
49 additions, 0 deletions
__migration.sql
login.php
+1
-1
1 addition, 1 deletion
login.php
with
50 additions
and
1 deletion
__migration.sql
0 → 100644
+
49
−
0
View file @
2894a62a
-- Adminer 4.8.1 MySQL 8.3.0 dump
SET
NAMES
utf8
;
SET
time_zone
=
'+00:00'
;
SET
foreign_key_checks
=
0
;
SET
sql_mode
=
'NO_AUTO_VALUE_ON_ZERO'
;
SET
NAMES
utf8mb4
;
CREATE
DATABASE
`dharaneesh_photogram`
/*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */
/*!80016 DEFAULT ENCRYPTION='N' */
;
USE
`dharaneesh_photogram`
;
DROP
TABLE
IF
EXISTS
`auth`
;
CREATE
TABLE
`auth`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`username`
tinytext
NOT
NULL
,
`password`
tinytext
NOT
NULL
,
`email`
varchar
(
25
)
NOT
NULL
,
`phone`
varchar
(
10
)
NOT
NULL
,
`active`
int
NOT
NULL
DEFAULT
'1'
,
`blocked`
int
NOT
NULL
DEFAULT
'0'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`email`
(
`email`
),
UNIQUE
KEY
`phone`
(
`phone`
),
UNIQUE
KEY
`username`
(
`username`
(
40
))
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
INSERT
INTO
`auth`
(
`id`
,
`username`
,
`password`
,
`email`
,
`phone`
,
`active`
,
`blocked`
)
VALUES
(
7
,
'dharaneesh'
,
'$2y$09$e7ice8yMXhXtPE92FeH/KuWoZWLEuZsQwFGIw.TYXV/Ee1LqcR3ei'
,
'rvi13970@gmail.com'
,
'6374526623'
,
1
,
0
);
DROP
TABLE
IF
EXISTS
`users`
;
CREATE
TABLE
`users`
(
`id`
int
NOT
NULL
,
`bio`
longtext
NOT
NULL
,
`avatar`
varchar
(
1024
)
NOT
NULL
,
`firstname`
text
NOT
NULL
,
`lastname`
text
NOT
NULL
,
`dob`
date
DEFAULT
NULL
,
`instagram`
varchar
(
1024
)
DEFAULT
NULL
,
`twitter`
varchar
(
1024
)
DEFAULT
NULL
,
`facebook`
varchar
(
1024
)
DEFAULT
NULL
,
KEY
`id`
(
`id`
),
CONSTRAINT
`users_ibfk_1`
FOREIGN
KEY
(
`id`
)
REFERENCES
`auth`
(
`id`
)
ON
DELETE
RESTRICT
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
;
INSERT
INTO
`users`
(
`id`
,
`bio`
,
`avatar`
,
`firstname`
,
`lastname`
,
`dob`
,
`instagram`
,
`twitter`
,
`facebook`
)
VALUES
(
7
,
'bio'
,
'avatar'
,
'first'
,
'last'
,
'2024-02-12'
,
'abc'
,
'abc'
,
'abc'
);
-- 2024-02-12 15:11:26
\ No newline at end of file
This diff is collapsed.
Click to expand it.
login.php
+
1
−
1
View file @
2894a62a
<?php
<?php
include
"libs/load.php"
;
?>
<!doctype html>
...
...
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