-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resend otp and error should be shown on same page with custom response
- Loading branch information
Showing
3 changed files
with
83 additions
and
10 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...eycloak-mobile-number-login-spi/src/main/java/in/divoc/api/authenticator/IValidation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package in.divoc.api.authenticator; | ||
|
||
public interface IValidation { | ||
boolean validate(String mobileNumber); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...k-mobile-number-login-spi/src/main/java/in/divoc/api/authenticator/ValidationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package in.divoc.api.authenticator; | ||
|
||
public class ValidationService implements IValidation { | ||
@Override | ||
public boolean validate(String mobileNumber) { | ||
return mobileNumber.length() == 10 || mobileNumber.length() == 14; | ||
} | ||
} |