Skip to content

Commit

Permalink
Merge pull request #2510 from SCADA-LTS/fix/#2508_Fixed_year_on_login…
Browse files Browse the repository at this point in the history
…_page

#2508 Fixed year on login page
  • Loading branch information
Limraj committed Apr 16, 2023
2 parents ad9452d + 8b8a144 commit e252021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/scada_lts/web/mvc/controller/LoginController.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.joda.time.DateTime;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
Expand All @@ -41,7 +42,7 @@ public class LoginController {
@RequestMapping(method = RequestMethod.GET)
protected ModelAndView createForm(HttpServletRequest request) throws Exception {
LOG.trace("/login.htm");

request.setAttribute("toYear", DateTime.now().getYear());
return new ModelAndView("login");
}
}

0 comments on commit e252021

Please sign in to comment.