Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Merge requests
!423
Validate and allow SO numbers in frontend
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Validate and allow SO numbers in frontend
frontend-allow-so-number
into
master
Overview
0
Commits
1
Pipelines
1
Changes
3
Merged
Jonas Braathen
requested to merge
frontend-allow-so-number
into
master
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
3
Expand
0
0
Merge request reports
Viewing commit
94cfe13d
Show latest version
3 files
+
91
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Verified
94cfe13d
Validate and allow SO numbers in frontend
· 94cfe13d
Jonas Braathen
authored
1 year ago
frontend/src/routes/guest/register/steps/register.tsx
+
1
−
1
Options
@@ -590,7 +590,7 @@ const GuestRegisterStep = forwardRef(
// It is not required that the Norwegian national ID number be filled in, the guest may not have
// one, so allow empty values for the validation to pass. Note that both "fødselsnummer" and
// D-number are allowed as input, and in some cases SO-number
validate
:
(
value
)
=>
isValidFnr
(
value
,
true
),
validate
:
(
value
)
=>
isValidFnr
(
value
,
true
,
true
),
}
}
render
=
{
({
field
})
=>
(
<
TextField
Loading