Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
2df97a0d
Commit
2df97a0d
authored
Sep 25, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust wallet name restrictions
parent
80cdb66b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
create.component.ts
Breeze.UI/src/app/setup/create/create.component.ts
+6
-6
recover.component.ts
Breeze.UI/src/app/setup/recover/recover.component.ts
+8
-6
No files found.
Breeze.UI/src/app/setup/create/create.component.ts
View file @
2df97a0d
...
...
@@ -30,12 +30,12 @@ export class CreateComponent {
"walletName"
:
[
""
,
Validators
.
compose
([
Validators
.
required
,
Validators
.
minLength
(
3
),
Validators
.
minLength
(
1
),
Validators
.
maxLength
(
24
),
Validators
.
pattern
(
/^
[
a-zA-Z0-9
]
*$/
)
])
],
"walletPassword"
:
[
""
,
"walletPassword"
:
[
""
,
Validators
.
compose
([
Validators
.
required
,
Validators
.
pattern
(
/^
(?=
.*
[
a-z
])(?=
.*
[
A-Z
])(?=
.*
[
0-9
])(?=
.
{10,})
/
)])
...
...
@@ -75,10 +75,10 @@ export class CreateComponent {
validationMessages
=
{
'walletName'
:
{
'required'
:
'
N
ame is required.'
,
'minlength'
:
'
Name must be at least 3 characters
long.'
,
'maxlength'
:
'
N
ame cannot be more than 24 characters long.'
,
'pattern'
:
'
E
nter a valid wallet name. [a-Z] and [0-9] are the only characters allowed.'
'required'
:
'
A wallet n
ame is required.'
,
'minlength'
:
'
A wallet name must be at least one character
long.'
,
'maxlength'
:
'
A wallet n
ame cannot be more than 24 characters long.'
,
'pattern'
:
'
Please e
nter a valid wallet name. [a-Z] and [0-9] are the only characters allowed.'
},
'walletPassword'
:
{
'required'
:
'A password is required.'
,
...
...
Breeze.UI/src/app/setup/recover/recover.component.ts
View file @
2df97a0d
...
...
@@ -35,8 +35,9 @@ export class RecoverComponent implements OnInit {
"walletPassword"
:
[
""
,
Validators
.
required
],
"walletName"
:
[
""
,
[
Validators
.
required
,
Validators
.
minLength
(
3
),
Validators
.
maxLength
(
24
)
Validators
.
minLength
(
1
),
Validators
.
maxLength
(
24
),
Validators
.
pattern
(
/^
[
a-zA-Z0-9
]
*$/
)
]
],
"selectNetwork"
:
[
"test"
,
Validators
.
required
]
...
...
@@ -77,10 +78,11 @@ export class RecoverComponent implements OnInit {
'required'
:
'A password is required.'
},
'walletName'
:
{
'required'
:
'Name is required.'
,
'minlength'
:
'Name must be at least 3 characters long.'
,
'maxlength'
:
'Name cannot be more than 24 characters long.'
}
'required'
:
'A wallet name is required.'
,
'minlength'
:
'A wallet name must be at least one character long.'
,
'maxlength'
:
'A wallet name cannot be more than 24 characters long.'
,
'pattern'
:
'Please enter a valid wallet name. [a-Z] and [0-9] are the only characters allowed.'
},
};
private
onBackClicked
()
{
...
...
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