[java-idp-plugin-totp] branch main updated: Update error handling template.

Scott Cantor cantor.2 at osu.edu
Tue Aug 11 22:31:38 UTC 2020


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-idp-plugin-totp.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-totp.git;a=commit;h=cf3acce9c9cbcd879e595fecb12b75c2c911ee43

The following commit(s) were added to refs/heads/main by this push:
       new  cf3acce   Update error handling template.
cf3acce is described below

commit cf3acce9c9cbcd879e595fecb12b75c2c911ee43
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Aug 11 18:32:55 2020 -0400

    Update error handling template.
---
 totp-impl/src/main/resources/views/totp-error.vm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/totp-impl/src/main/resources/views/totp-error.vm b/totp-impl/src/main/resources/views/totp-error.vm
index 388db80..465666c 100644
--- a/totp-impl/src/main/resources/views/totp-error.vm
+++ b/totp-impl/src/main/resources/views/totp-error.vm
@@ -5,7 +5,9 @@
 #if ($authenticationErrorContext && $authenticationErrorContext.getClassifiedErrors().size() > 0)
     ## This handles errors that are classified by the message maps in the authentication config.
     #set ($eventId = $authenticationErrorContext.getClassifiedErrors().iterator().next())
-    #if ($eventId != "ReselectFlow")
+    #if ($eventId == "InvalidCredentials")
+        #set ($message = $springMacroRequestContext.getMessage("bad-tokencode.message", "The supplied token code was invalid."))
+    #elseif ($eventId != "ReselectFlow")
         #set ($eventKey = $springMacroRequestContext.getMessage("$eventId", "login"))
         #set ($message = $springMacroRequestContext.getMessage("${eventKey}.message", "Login Failure: $eventId"))
     #end
@@ -17,11 +19,6 @@
     #else
     	#set ($message = $loginException.toString())
     #end
-#elseif ($flowRequestContext)
-    #set ($eventId = $flowRequestContext.getCurrentEvent().getId())
-    #if ($eventId == "InvalidCredentials")
-        #set ($message = $springMacroRequestContext.getMessage("idp.totp.invalid", "The supplied token code was invalid."))
-    #end
 #end
 
 #if ($message)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list