Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Summative_Sam_Markey
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
sam.markey
Summative_Sam_Markey
Commits
8b9503b6
Commit
8b9503b6
authored
Apr 29, 2021
by
Sam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit v5
parent
15e5a682
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
register.java
...src/main/java/com/example/museumworld/login/register.java
+14
-4
No files found.
app/src/main/java/com/example/museumworld/login/register.java
View file @
8b9503b6
...
@@ -106,21 +106,35 @@ public class register extends AppCompatActivity implements View.OnClickListener
...
@@ -106,21 +106,35 @@ public class register extends AppCompatActivity implements View.OnClickListener
setParams
(
ErrorMessageFirstname
);
setParams
(
ErrorMessageFirstname
);
ErrorMessageFirstname
.
setText
(
message
);
ErrorMessageFirstname
.
setText
(
message
);
}
}
else
{
ResetParams
(
ErrorMessageFirstname
);
}
if
(
lastname
.
length
()
<
3
)
{
if
(
lastname
.
length
()
<
3
)
{
message
=
getString
(
R
.
string
.
reister_lastname
);
message
=
getString
(
R
.
string
.
reister_lastname
);
setParams
(
ErrorMessageLastname
);
setParams
(
ErrorMessageLastname
);
ErrorMessageLastname
.
setText
(
message
);
ErrorMessageLastname
.
setText
(
message
);
}
}
else
{
ResetParams
(
ErrorMessageLastname
);
}
if
(
username
.
length
()
<
5
)
{
if
(
username
.
length
()
<
5
)
{
message
=
getString
(
R
.
string
.
reister_username
);
message
=
getString
(
R
.
string
.
reister_username
);
setParams
(
ErrorMessageuserName
);
setParams
(
ErrorMessageuserName
);
ErrorMessageuserName
.
setText
(
message
);
ErrorMessageuserName
.
setText
(
message
);
}
}
else
{
ResetParams
(
ErrorMessageuserName
);
}
if
(
password
.
length
()
<
7
)
{
if
(
password
.
length
()
<
7
)
{
message
=
getString
(
R
.
string
.
reister_password
);
message
=
getString
(
R
.
string
.
reister_password
);
setParams
(
ErrorMessagepassword
);
setParams
(
ErrorMessagepassword
);
ErrorMessagepassword
.
setText
(
message
);
ErrorMessagepassword
.
setText
(
message
);
}
}
else
{
ResetParams
(
ErrorMessagepassword
);
}
if
(!
password
.
equals
(
password2
)
||
password2
.
length
()
<
7
)
{
if
(!
password
.
equals
(
password2
)
||
password2
.
length
()
<
7
)
{
message
=
getString
(
R
.
string
.
reister_password2
);
message
=
getString
(
R
.
string
.
reister_password2
);
setParams
(
ErrorMessagepassword2
);
setParams
(
ErrorMessagepassword2
);
...
@@ -128,10 +142,6 @@ public class register extends AppCompatActivity implements View.OnClickListener
...
@@ -128,10 +142,6 @@ public class register extends AppCompatActivity implements View.OnClickListener
}
else
{
}
else
{
ResetParams
(
ErrorMessageFirstname
);
ResetParams
(
ErrorMessageLastname
);
ResetParams
(
ErrorMessageuserName
);
ResetParams
(
ErrorMessagepassword
);
ResetParams
(
ErrorMessagepassword2
);
ResetParams
(
ErrorMessagepassword2
);
addAccount
(
firstname
,
lastname
,
username
,
password
);
addAccount
(
firstname
,
lastname
,
username
,
password
);
return
false
;
return
false
;
...
...
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