The source project of this merge request has been removed.
Allow user to set their login when registering
Hi,
I added the possibility for a registering user to set its login.
Changes:
- Introduce
registerDisplayLoginInput
config variable to toggle the visibility of the login input. - Use
registerDisplayLoginInput
to create a template variableDISPLAY_LOGIN_INPUT
- Create a login input in
register.tpl
- Add the login param to the
registerInfo
object inRegister.pm
- Use the provided login instead of calling
computeLogin
- Make
isLoginUsed
method a public method inSAML
andAD
- Add a
isLoginUsed
method toDEMO
to make it compliant with the new API requirement - Add default values for the variables in
Attributes.pm
Extra changes:
- Introduce
loginControl
config variables to validate the login and validate the login in the registration flow inRegister.pm
- Introduce
registerLdapObjectClasses
config variable to customize theobjectClass
inuserCreation
inLDAP.pm
andAD.pm
- Introduce
registerTransformNames
to prevent first and last name transformation inuserCreation
Needed changes (I would need guidance):
- Create a
PE_LOGINALREADYEXISTS
variable inRegister.pm
and a correct error message - Add inputs in manager
- Write tests
Edited by Yadd