Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
36720301
Commit
36720301
authored
5 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-4224: fix registration mail validation (patch S. Clemenz)
parent
80fb03d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/registration/RegistrationForm2.java
+8
-2
8 additions, 2 deletions
src/main/java/org/olat/registration/RegistrationForm2.java
with
8 additions
and
2 deletions
src/main/java/org/olat/registration/RegistrationForm2.java
+
8
−
2
View file @
36720301
...
...
@@ -53,6 +53,7 @@ import org.olat.login.validation.SyntaxValidator;
import
org.olat.login.validation.ValidationResult
;
import
org.olat.user.ChangePasswordForm
;
import
org.olat.user.UserManager
;
import
org.olat.user.propertyhandlers.EmailProperty
;
import
org.olat.user.propertyhandlers.UserPropertyHandler
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -87,6 +88,8 @@ public class RegistrationForm2 extends FormBasicController {
private
UserManager
userManager
;
@Autowired
private
OLATAuthManager
olatAuthManager
;
@Autowired
private
RegistrationManager
registrationManager
;
public
RegistrationForm2
(
UserRequest
ureq
,
WindowControl
wControl
,
String
languageKey
,
String
proposedUsername
,
String
email
,
boolean
userInUse
,
boolean
usernameReadonly
)
{
...
...
@@ -237,8 +240,11 @@ public class RegistrationForm2 extends FormBasicController {
// validate each user field
for
(
UserPropertyHandler
userPropertyHandler
:
userPropertyHandlers
)
{
FormItem
fi
=
propFormItems
.
get
(
userPropertyHandler
.
getName
());
if
(!
userPropertyHandler
.
isValid
(
null
,
fi
,
null
))
{
allOk
&=
false
;
if
(
fi
.
isEnabled
()
&&
!
userPropertyHandler
.
isValid
(
null
,
fi
,
null
))
{
if
(
userPropertyHandler
instanceof
EmailProperty
)
allOk
&=
registrationManager
.
isEmailReserved
(
getEmail
());
else
allOk
&=
false
;
}
}
...
...
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