Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
fix for sharc-486
Browse files Browse the repository at this point in the history
  • Loading branch information
samithaliyanage committed Jul 12, 2016
1 parent 72e64e9 commit 391b78a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/Global.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public F.Promise<SimpleResult> onError(Http.RequestHeader requestHeader, Throwab

if(userId != null) {
log.error("Internal server error. Logged In UserId: " + userId + " User Email: " + userEmail, throwable);
UserManagement.sendMail(PlayConfWrapper.errorHandlingEmail(),"Exception in "+ PlayConfWrapper.portalUrl(),"Internal server error in "+ PlayConfWrapper.portalUrl() + "\n Date and time in US/ET: " + dateFormat.format(date) + " \n Logged In UserId: " + userId + " \n User Email: " + userEmail + "\n Error: " + throwable.getCause());
UserManagement. sendMail(PlayConfWrapper.errorHandlingEmail(),"Exception in "+ PlayConfWrapper.portalUrl(),"Internal server error in "+ PlayConfWrapper.portalUrl() + "\n Date and time in US/ET: " + dateFormat.format(date) + " \n Logged In UserId: " + userId + " \n User Email: " + userEmail + "\n Error: " + throwable.getCause());
} else {
log.error("Internal server error.", throwable);
UserManagement.sendMail(PlayConfWrapper.errorHandlingEmail(),"Exception in "+ PlayConfWrapper.portalUrl(),"Internal server error in "+ PlayConfWrapper.portalUrl() +"\n Date and time in US/ET: " + dateFormat.format(date) +" \n Error: "+ throwable.getCause());
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/HTRCPortal.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static Result login() throws IOException, JAXBException {
if(!userManager.roleNameExists(userId)){
return ok(gotopage.render("Looks like you have not activated your account. Your account activation link has sent to " + userEmail + ". Please check your email and activate account. " +
"If you have not received your activation link, please contact us by email " +
" ", "mailto:[email protected]?Subject=Issue_with_account_activation_link", "([email protected]).",null));
" ", "mailto:"+PlayConfWrapper.supportEmail()+"?Subject=Issue_with_account_activation_link", PlayConfWrapper.supportEmail(),null));
}
log.debug("Role name exists: " + userManager.roleNameExists(userId));
log.info("Logged in user:"+ userId + ", Email:" + userEmail + ", Remote address:" + request().remoteAddress());
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/UserManagement.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static Result signUp() {
return ok(gotopage.render("Welcome to HTRC! You account activation link was sent to "
+ signUpForm.get().email +
". If you don't receive your activation link within 5 minutes, please contact us by email " +
" ", "mailto:[email protected]?Subject=Issue_with_account_activation_link", "([email protected]).", null));
" ", "mailto:"+PlayConfWrapper.supportEmail()+"?Subject=Issue_with_account_activation_link", PlayConfWrapper.supportEmail(), null));
}

public static Result activateAccount(String token) {
Expand All @@ -61,7 +61,7 @@ public static Result activateAccount(String token) {
}
return ok(gotopage.render("Your account is activated successfully. Click on the login link to begin:", "login", "Login", null));
}
return ok(gotopage.render("It looks like you have already activated your account or some error on your activation link. Please try to login with your user credentials. If you can't login or activate your account, please contact us by email.", "mailto:[email protected]?Subject=Issue_with_account_activation_link", "([email protected]).", null));
return ok(gotopage.render("It looks like you have already activated your account or some error on your activation link. Please try to login with your user credentials. If you can't login or activate your account, please contact us by email.", "mailto:"+PlayConfWrapper.supportEmail()+"?Subject=Issue_with_account_activation_link", PlayConfWrapper.supportEmail(), null));
}

public static Result createAccountRequestForm() {
Expand Down
4 changes: 2 additions & 2 deletions app/views/error500.scala.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@(t: Throwable, userId: String)

@import edu.indiana.d2i.htrc.portal.PlayConfWrapper

@main("Internal Server Error", userId) {
<div class="container container-panel" style="padding-top : 15 px ; padding-bottom : 15 px ;">
Expand All @@ -8,6 +8,6 @@ <h2 style="color: maroon; text-align: center;">
@*Oops, looks like something went wrong. It's not you. It's us.*@
</h2>
<p style="text-align: center;">If you would like to help, please report what you were doing just before
the problem to our support email <a href="mailto:htrc-tech-help-l@@list.indiana.edu">htrc-tech-help-l@@list.indiana.edu</a></p>
the problem to our support email <a href="mailto:@PlayConfWrapper.supportEmail()">@PlayConfWrapper.supportEmail()</a></p>
</div>
}
2 changes: 1 addition & 1 deletion app/views/main.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
Knowledge Base</a>
</li>
<li class="divider"></li>
<li><a href="mailto:htrc-tech-help-l@@list.indiana.edu?Subject=Contact">
<li><a href="mailto:@PlayConfWrapper.supportEmail()?Subject=Contact">
Contact</a>
</li>
</ul>
Expand Down

0 comments on commit 391b78a

Please sign in to comment.