Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI08
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dodi Agustin Refansius Pakpahan
PA1-1617-D3TI08
Commits
9fbd78c6
Commit
9fbd78c6
authored
Jun 14, 2017
by
Suryaningsih Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mengedit
parent
d5c5d18d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
users.php
core/users.php
+2
-2
No files found.
core/users.php
View file @
9fbd78c6
...
@@ -28,8 +28,8 @@ function registerUser() {
...
@@ -28,8 +28,8 @@ function registerUser() {
$salt
=
salt
(
32
);
$salt
=
salt
(
32
);
$newPassword
=
makePassword
(
$password
,
$salt
);
$newPassword
=
makePassword
(
$password
,
$salt
);
if
(
$newPassword
)
{
if
(
$newPassword
)
{
$
sql
=
"INSERT INTO user (namalengkap, alamat, email, username, password) VALUES ('
$fname
', '
$lname
', '
$username
', '
$newPassword
', '
$salt
' , 1)"
;
$
connect
=
mysqli_query
(
$conn
,
"INSERT INTO user (namalengkap, alamat, email, username, password) VALUES ('
$fname
', '
$lname
', '
$username
', '
$newPassword
', '
$salt
' , 1)"
)
;
$query
=
$connect
->
query
(
$
sql
);
$query
=
$connect
->
query
(
$
connect
);
if
(
$query
===
TRUE
)
{
if
(
$query
===
TRUE
)
{
return
true
;
return
true
;
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment