Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdt4242-base-APU
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
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
Tor Martin Frøberg Wang
tdt4242-base-APU
Commits
d9704ef3
Commit
d9704ef3
authored
4 years ago
by
asmundh
Browse files
Options
Downloads
Patches
Plain Diff
Fix form-bug
parent
141ef533
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#109845
failed with stages
in 0 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/www/register.html
+2
-2
2 additions, 2 deletions
frontend/www/register.html
frontend/www/scripts/register.js
+6
-6
6 additions, 6 deletions
frontend/www/scripts/register.js
with
8 additions
and
8 deletions
frontend/www/register.html
+
2
−
2
View file @
d9704ef3
...
...
@@ -41,7 +41,7 @@
</div>
<!-- form-group// -->
<div
class=
"input-group mb-2"
>
<span
class=
"input-group-text"
>
<i
class=
"fas fa-mobile"
></i>
</span>
<input
class=
"form-control"
name=
"phone"
placeholder=
"Phone number"
type=
"text"
<input
class=
"form-control"
name=
"phone
_number
"
placeholder=
"Phone number"
type=
"text"
required
>
</div>
<!-- form-group// -->
<div
class=
"input-group mb-2"
>
...
...
@@ -56,7 +56,7 @@
</div>
<!-- form-group// -->
<div
class=
"input-group mb-2"
>
<span
class=
"input-group-text"
>
<i
class=
"fas fa-hotel"
></i>
</span>
<input
class=
"form-control"
name=
"address"
placeholder=
"Street address"
type=
"text"
<input
class=
"form-control"
name=
"
street_
address"
placeholder=
"Street address"
type=
"text"
required
>
</div>
<!-- form-group// -->
<div
class=
"d-grid"
>
...
...
This diff is collapsed.
Click to expand it.
frontend/www/scripts/register.js
+
6
−
6
View file @
d9704ef3
...
...
@@ -11,12 +11,12 @@ async function createNewUser(event) {
}
else
{
let
body
=
{
username
:
formData
.
get
(
"
username
"
),
password
:
formData
.
get
(
"
password
"
),
phone
:
formData
.
get
(
"
phone
"
),
country
:
formData
.
get
(
"
country
"
),
city
:
formData
.
get
(
"
city
"
),
address
:
formData
.
get
(
"
address
"
)
username
:
formData
.
get
(
"
username
"
),
password
:
formData
.
get
(
"
password
"
),
phone
_number
:
formData
.
get
(
"
phone
_number
"
),
country
:
formData
.
get
(
"
country
"
),
city
:
formData
.
get
(
"
city
"
),
street_
address
:
formData
.
get
(
"
street_
address
"
)
};
response
=
await
sendRequest
(
"
POST
"
,
`
${
HOST
}
/api/token/`
,
body
);
if
(
response
.
ok
)
{
...
...
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