Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Muhammad Usman
PERFORMA_REPLICA
Commits
32c3e27a
Commit
32c3e27a
authored
Sep 12, 2017
by
chenith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow only verified users in to admin portal.
parent
f6c97098
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
UserLoginFP.java
cmsWebApp/src/performa/form/UserLoginFP.java
+4
-1
No files found.
cmsWebApp/src/performa/form/UserLoginFP.java
View file @
32c3e27a
...
@@ -7,6 +7,7 @@ import oneit.security.SecUser;
...
@@ -7,6 +7,7 @@ import oneit.security.SecUser;
import
oneit.servlets.forms.SubmissionDetails
;
import
oneit.servlets.forms.SubmissionDetails
;
import
oneit.utils.MultiException
;
import
oneit.utils.MultiException
;
import
oneit.utils.parsers.FieldException
;
import
oneit.utils.parsers.FieldException
;
import
performa.orm.CompanyUser
;
import
performa.utils.Utils
;
import
performa.utils.Utils
;
/**
/**
...
@@ -19,8 +20,10 @@ public class UserLoginFP extends LoginProcessor
...
@@ -19,8 +20,10 @@ public class UserLoginFP extends LoginProcessor
protected
void
checkUserCanLogin
(
ObjectTransaction
trans
,
SecUser
userToCheck
,
SubmissionDetails
submission
,
Map
requestParams
)
throws
FieldException
,
MultiException
protected
void
checkUserCanLogin
(
ObjectTransaction
trans
,
SecUser
userToCheck
,
SubmissionDetails
submission
,
Map
requestParams
)
throws
FieldException
,
MultiException
{
{
super
.
checkUserCanLogin
(
trans
,
userToCheck
,
submission
,
requestParams
);
super
.
checkUserCanLogin
(
trans
,
userToCheck
,
submission
,
requestParams
);
CompanyUser
companyUser
=
userToCheck
.
getExtension
(
CompanyUser
.
REFERENCE_CompanyUser
);
if
(!
Utils
.
checkAdminPortalAccess
(
userToCheck
))
if
(!
Utils
.
checkAdminPortalAccess
(
userToCheck
)
||
companyUser
==
null
||
companyUser
.
getIsAccountVerified
()!=
Boolean
.
TRUE
)
{
{
throw
new
FieldException
(
"You're not an authorised user to access this portal."
,
SecUser
.
FIELD_UserName
);
throw
new
FieldException
(
"You're not an authorised user to access this portal."
,
SecUser
.
FIELD_UserName
);
}
}
...
...
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