Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Quentin Vrel
projet-cdaw
Commits
c9c2573e
Commit
c9c2573e
authored
Dec 03, 2020
by
quentin.vrel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gvipers.imt-lille-douai.fr/QVrel/projet-cdaw
parents
681c3a46
c1593717
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
UserController.class.php
BackEnd/src/controller/UserController.class.php
+1
-1
Register.vue
frontend/src/views/Register.vue
+1
-1
No files found.
BackEnd/src/controller/UserController.class.php
View file @
c9c2573e
...
...
@@ -118,7 +118,7 @@ class UserController extends Controller
// Fill facultative field
if
(
!
isset
(
$array
[
'avatar'
])){
$array
[
'avatar'
]
=
'
default.png
'
;
$array
[
'avatar'
]
=
''
;
}
if
(
!
isset
(
$array
[
'lastname'
])){
$array
[
'lastname'
]
=
''
;
...
...
frontend/src/views/Register.vue
View file @
c9c2573e
...
...
@@ -95,7 +95,7 @@ export default {
// Salut Luc, on s'est dit qu'après avoir répété au moins 3 fois que le password devait être hashé
// tu serais heureux de voir la ligne ci-dessous
pwd
:
bcrypt
.
hashSync
(
document
.
getElementById
(
'password1'
).
value
,
"$2a$10$4AAhcsd4FpiPvUS718Bemu"
),
avatar
:
"
default.png
"
,
avatar
:
""
,
lastname
:
""
,
firstname
:
""
,
mail
:
document
.
getElementById
(
'mail'
).
value
...
...
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