Amelioration CSS
Prise en compte des conferenceCreationToken lors de la creation de conference. Corrections de forgotPassword
This commit is contained in:
@@ -96,6 +96,7 @@ form.forgotPassword.email=E-Mail address for your account :
|
||||
form.forgotPassword.submit=Request new password
|
||||
form.forgotPassword.help=Please enter the email address you used for your YACOS account.\nA new password will be generated and sent into your mailbox.
|
||||
forgotPassword.title=Reset your password
|
||||
forgotPassword.submitted=A new password has been successfully generated for your account.\nIt has been sent to your email address.
|
||||
|
||||
###################
|
||||
# MESSAGE ERROR
|
||||
@@ -174,6 +175,8 @@ evaluation.choose=Choose an title to evaluation from the list
|
||||
|
||||
invitation.send=Send an invitation
|
||||
|
||||
conference.error.noTokenLeft=You have no conference creation token left !\nPlease contact the administrator
|
||||
|
||||
#Validation messages for errors
|
||||
submissionArticle.title=The title should not be null
|
||||
submissionArticle.theme=The theme should not be null
|
||||
|
||||
@@ -4,7 +4,12 @@
|
||||
<head></head>
|
||||
<body>
|
||||
|
||||
|
||||
Acces denied. Sorry for this inconvenience.
|
||||
|
||||
<div class="errorBox">
|
||||
${message}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -10,6 +10,13 @@
|
||||
<fmt:message key="form.forgotPassword.help"/>
|
||||
</p>
|
||||
<div class="cbb">
|
||||
<c:choose>
|
||||
<c:when test="${success}">
|
||||
<p class="formOk">
|
||||
<fmt:message key="forgotPassword.submitted"/>
|
||||
</p>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<form:form commandName="forgotPassword">
|
||||
<h2>
|
||||
<form:label path="email">
|
||||
@@ -22,6 +29,8 @@
|
||||
</div>
|
||||
<input type="submit" name="submit" value="<fmt:message key="form.forgotPassword.submit"/>"/>
|
||||
</form:form>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
BIN
YACOSWeb/WebContent/images/errorSymbol.png
Normal file
BIN
YACOSWeb/WebContent/images/errorSymbol.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
YACOSWeb/WebContent/images/formHelpSymbol.png
Normal file
BIN
YACOSWeb/WebContent/images/formHelpSymbol.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
YACOSWeb/WebContent/images/formOkSymbol.png
Normal file
BIN
YACOSWeb/WebContent/images/formOkSymbol.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
@@ -33,11 +33,35 @@ form {
|
||||
}
|
||||
|
||||
.formHelp {
|
||||
min-height: 30px;
|
||||
padding: 5px;
|
||||
padding-left: 35px;
|
||||
border: thin solid #94ff90;
|
||||
background: #dfffe4 url(../images/formHelpSymbol.png) no-repeat 2px 5px;
|
||||
}
|
||||
|
||||
.formOk {
|
||||
min-height: 30px;
|
||||
background-image: url(../images/formOkSymbol.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 2px 5px;
|
||||
padding: 5px;
|
||||
padding-left: 35px;
|
||||
border: thin solid #94ff90;
|
||||
background-color: #dfffe4;
|
||||
}
|
||||
|
||||
.errorBox {
|
||||
min-height: 30px;
|
||||
background-image: url(../images/errorSymbol.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 2px 5px;
|
||||
padding: 5px;
|
||||
padding-left: 35px;
|
||||
border: thin solid rgb(255,0,12);
|
||||
background-color: rgb(255,188,182);
|
||||
}
|
||||
|
||||
.formError{
|
||||
color: #ff0000;
|
||||
}
|
||||
@@ -229,6 +253,7 @@ form {
|
||||
}
|
||||
|
||||
#maincontent > * {
|
||||
margin-top: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.yacos.core.conferences.IConferenceManager;
|
||||
import org.yacos.core.evaluation.Criterion;
|
||||
import org.yacos.core.evaluation.IEvaluationManager;
|
||||
import org.yacos.core.exceptions.ConferenceDoesntExistException;
|
||||
import org.yacos.core.exceptions.NoConferenceCreationTokenLeftException;
|
||||
import org.yacos.core.users.IUserManager;
|
||||
import org.yacos.core.users.User;
|
||||
import org.yacos.core.users.Role.RoleType;
|
||||
@@ -424,15 +425,22 @@ public class AddConferenceController extends AbstractWizardFormController {
|
||||
if (action == null || action.equals("")) {
|
||||
|
||||
|
||||
Conference conf = conferenceManager.addConference(
|
||||
conference.getTitle(),
|
||||
conference.getDescription(),
|
||||
conference.getOtherInformations(),
|
||||
conference.getDateArticleParsed(),
|
||||
conference.getDateArticleParsed(),
|
||||
conference.getDateEvaluationParsed(),
|
||||
conference.getDateStartParsed(),
|
||||
conference.getDateEndParsed());
|
||||
Conference conf = null;
|
||||
|
||||
try {
|
||||
conf = conferenceManager.addConference(
|
||||
conference.getTitle(),
|
||||
SessionService.getInstance().getCurrentUserLogin(),
|
||||
conference.getDescription(),
|
||||
conference.getOtherInformations(),
|
||||
conference.getDateArticleParsed(),
|
||||
conference.getDateArticleParsed(),
|
||||
conference.getDateEvaluationParsed(),
|
||||
conference.getDateStartParsed(),
|
||||
conference.getDateEndParsed());
|
||||
} catch (NoConferenceCreationTokenLeftException e1) {
|
||||
return new ModelAndView("denied","message",getMessageSourceAccessor().getMessage("conference.error.noTokenLeft"));
|
||||
}
|
||||
|
||||
conference.setConferenceId(conf.getId());
|
||||
SessionService.getInstance().setCurrentConference(conf);
|
||||
|
||||
@@ -42,8 +42,6 @@ public class ForgotPasswordController extends SimpleFormController {
|
||||
String newPassword = YACOSUtils.generate(12);
|
||||
user.setPassword(User.hashPassword(newPassword));
|
||||
|
||||
System.out.println(newPassword);
|
||||
|
||||
userManager.UpdateUser(user);
|
||||
|
||||
String mailSubject = "Your new YACOS password";
|
||||
@@ -54,7 +52,9 @@ public class ForgotPasswordController extends SimpleFormController {
|
||||
|
||||
MailSenderService.getInstance().sendEMail(email, mailSubject, mailBody);
|
||||
|
||||
return new ModelAndView(getSuccessView());
|
||||
request.setAttribute("success", true);
|
||||
|
||||
return showNewForm(request, response);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user