Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
teknikattan-scoring-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tddd96-grupp1
teknikattan-scoring-system
Commits
969eaec7
Commit
969eaec7
authored
3 years ago
by
Josef Olsson
Browse files
Options
Downloads
Patches
Plain Diff
User can be named when created
parent
fcb5b841
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#46182
passed with warnings
3 years ago
Stage: setup
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/src/pages/admin/users/AddUser.tsx
+1
-1
1 addition, 1 deletion
client/src/pages/admin/users/AddUser.tsx
server/app/apis/auth.py
+1
-0
1 addition, 0 deletions
server/app/apis/auth.py
with
2 additions
and
1 deletion
client/src/pages/admin/users/AddUser.tsx
+
1
−
1
View file @
969eaec7
...
...
@@ -54,7 +54,7 @@ const AddUser: React.FC = (props: any) => {
const
params
=
{
email
:
values
.
model
.
email
,
password
:
values
.
model
.
password
,
//
name: values.model.name,
name
:
values
.
model
.
name
,
city_id
:
selectedCity
?.
id
as
number
,
role_id
:
selectedRole
?.
id
as
number
,
}
...
...
This diff is collapsed.
Click to expand it.
server/app/apis/auth.py
+
1
−
0
View file @
969eaec7
...
...
@@ -28,6 +28,7 @@ login_parser.add_argument("password", type=str, required=True, location="json")
create_user_parser
=
login_parser
.
copy
()
create_user_parser
.
add_argument
(
"
city_id
"
,
type
=
int
,
required
=
True
,
location
=
"
json
"
)
create_user_parser
.
add_argument
(
"
role_id
"
,
type
=
int
,
required
=
True
,
location
=
"
json
"
)
create_user_parser
.
add_argument
(
"
name
"
,
type
=
str
,
required
=
False
,
location
=
"
json
"
)
login_code_parser
=
reqparse
.
RequestParser
()
login_code_parser
.
add_argument
(
"
code
"
,
type
=
str
,
required
=
True
,
location
=
"
json
"
)
...
...
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