feel free to keep it strictly simple...

Allowed Chars

Allowed chars

Following chars are defined for use in LEPTON standards (see class LEPTON_core).

public string $password_chars = 'a-zA-Z0-9\_\-\!\$\#\*\+'; public string $email_chars = 'a-zA-Z0-9@\-_\.'; public string $username_chars = 'a-zA-Z0-9@ \-,_\.'; public string $hex_chars = 'a-fA-F0-9\-';
last edit: 05. Apr 2025 CEST 16:09:30

Extend

The cms standard chars can be extended using lepton_ini.php in config directory

; Set allowed additional chars for email and usernames (extends LEPTON_handle methods) [custom_vars] additional_email_chars = '' additional_usernames_chars = 'äöüÄÖÜ' additional_password_chars = '@\?' ;Please keep in mind that follwoing chars have to be escaped: ;( ) ^ $ [ \ | . * + ? ; see '?' in additional_password_chars ;Please avoid also double characters!
last edit: 05. Apr 2025 CEST 16:10:17

Check chars

If you want to check chars in your addons you can use methods from class LEPTON_handle, for example

LEPTON_handle::checkUsernameChars(string $sName) LEPTON_handle::checkPasswordChars(string $sPassword) etc.
last edit: 09. Aug 2023 CEST 11:05:03

If you run into troubles please use the LEPTON forum