mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Apply password policy on sign up screen
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
ComunicWeb.common.formChecker = {
|
||||
const FormChecker = {
|
||||
|
||||
/**
|
||||
* Check an input
|
||||
@ -73,4 +73,7 @@ ComunicWeb.common.formChecker = {
|
||||
return inputOK;
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
ComunicWeb.common.formChecker = FormChecker;
|
@ -328,7 +328,15 @@ async function showInputTextDialog(title, message, defaultValue = "") {
|
||||
* Prepare for potential future translation system
|
||||
*
|
||||
* @param {String} input Input string
|
||||
* @param {Object} arguments Arguments to apply to the string
|
||||
*/
|
||||
function tr(input) {
|
||||
function tr(input, values) {
|
||||
|
||||
// Apply arguments
|
||||
for (const key in values) {
|
||||
if (Object.hasOwnProperty.call(values, key))
|
||||
input = input.replace("%"+key+"%", values[key]);
|
||||
}
|
||||
|
||||
return input;
|
||||
}
|
Reference in New Issue
Block a user