Done ticket GEPAFINBE-32
This commit is contained in:
@@ -227,4 +227,10 @@ public class Utils {
|
||||
Pattern pattern = Pattern.compile(EMAIL_REGEX);
|
||||
return pattern.matcher(email).matches();
|
||||
}
|
||||
|
||||
public static String randomKey(Integer range) {
|
||||
String data = String.valueOf(System.currentTimeMillis());
|
||||
return data.substring(data.length() - range);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user