|
@@ -1,6 +1,9 @@
|
|
|
package com.onemap.gateway.handler;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.security.NoSuchAlgorithmException;
|
|
|
+import java.security.NoSuchProviderException;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -32,7 +35,7 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse>
|
|
|
{
|
|
|
ajax = validateCodeService.createCaptcha();
|
|
|
}
|
|
|
- catch (CaptchaException | IOException e)
|
|
|
+ catch (CaptchaException | IOException | NoSuchAlgorithmException | NoSuchProviderException e)
|
|
|
{
|
|
|
return Mono.error(e);
|
|
|
}
|