User registration completed

This commit is contained in:
2024-09-10 20:28:24 +02:00
parent f6e4bfdf2f
commit fd06b8a9a4
14 changed files with 203 additions and 56 deletions

View File

@@ -0,0 +1,16 @@
/**
* Validates a string for undefined and length
*
* @param string String to prove
* @param length Minimal length of string
*
* @returns True if valid
*/
export function validateString(string: string, length: number = 0) : boolean {
if (string != undefined) {
if (string.length >= length)
return true
}
return false
}