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
0088e76e
Commit
0088e76e
authored
7 years ago
by
uhensler
Browse files
Options
Downloads
Plain Diff
Merge OpenOLAT 12.3.x to OpenOLAT default with 49551e2f892ba7c28fc30fae7e7f3a93d4bc7f6a
parents
e483f6fe
d45c5f51
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/registration/RegistrationController.java
+1
-1
1 addition, 1 deletion
...in/java/org/olat/registration/RegistrationController.java
src/main/java/org/olat/registration/RegistrationManager.java
+8
-5
8 additions, 5 deletions
src/main/java/org/olat/registration/RegistrationManager.java
with
9 additions
and
6 deletions
src/main/java/org/olat/registration/RegistrationController.java
+
1
−
1
View file @
0088e76e
...
...
@@ -303,7 +303,7 @@ public class RegistrationController extends BasicController implements Activatea
};
boolean
isMailSent
=
false
;
if
(
UserManager
.
getInstance
().
isEmailAllowed
(
email
))
{
if
(
registrationManager
.
isRegistrationPending
(
email
)
||
UserManager
.
getInstance
().
isEmailAllowed
(
email
))
{
TemporaryKey
tk
=
null
;
if
(
userModule
.
isEmailUnique
())
{
tk
=
registrationManager
.
loadTemporaryKeyByEmail
(
email
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/registration/RegistrationManager.java
+
8
−
5
View file @
0088e76e
...
...
@@ -370,18 +370,21 @@ public class RegistrationManager {
}
}
}
tk
=
loadTemporaryKeyByAction
(
RegistrationManager
.
REGISTRATION
);
if
(
tk
!=
null
)
{
for
(
TemporaryKey
temporaryKey
:
tk
)
{
return
isRegistrationPending
(
emailAddress
);
}
public
boolean
isRegistrationPending
(
String
emailAddress
)
{
List
<
TemporaryKey
>
temporaryKeys
=
loadTemporaryKeyByAction
(
RegistrationManager
.
REGISTRATION
);
if
(
temporaryKeys
!=
null
)
{
for
(
TemporaryKey
temporaryKey
:
temporaryKeys
)
{
if
(
emailAddress
.
equalsIgnoreCase
(
temporaryKey
.
getEmailAddress
()))
{
return
true
;
}
}
}
return
false
;
}
/**
* Evaluates whether the given identity needs to accept a disclaimer before
* logging in or not.
...
...
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