Page 1 of 1
Username
Posted: 2022-12-09 17:19
by patsd102
I want to use a "forward slash" like this in the username, / EG: my/name
Can anyone point me in the right direction,
Thanks
Pat
Re: Username
Posted: 2022-12-11 10:21
by patsd102
I guess not

Re: Username
Posted: 2022-12-11 10:53
by jsetzer
A) What exactly is the problem you have? Any error messages?
and
B) If there are problems with your specific member-naming-idea, why don't you just follow the well working AppGini standard? Just would like to know the reason. Are you planning LDAP integration or something?
Did you try with backslash \ like in Microsoft Active Directory (*commercial product)
Re: Username
Posted: 2022-12-12 13:10
by jsetzer
incFunctions.php
contains is_allowed_username()
function which denies a slash character in standard AppGini code.
First step for you could be modifying that function according to you needs. I cannot guarantee that this will be the only change required.
Obviously, you would have to test all places in Users-Area and in Admin-Area if you want to be sure, such memberIDs don't break existing functionality. There may be more placed in which valid username will be checked against built-in username-convention.
Re: Username
Posted: 2022-12-12 20:22
by patsd102
Thanks for the reply.
I have managed to add a forward slash to a username
Have a nice day
Pat
Re: Username
Posted: 2022-12-12 20:52
by jsetzer
Please paste your solution here for others.
Re: Username
Posted: 2022-12-13 18:05
by patsd102
Hi Jsetzer
There is no code to post.
I added the username without the " / "
Then went into phpadmin and added a "/" there.
Seems to work okay.
I add all new usernames (getting the new member to fill in an appgini form) myself and only expect a small number of usernames like this.
Thx Pat
Re: Username
Posted: 2022-12-15 11:26
by A Bindi
jsetzer wrote: ↑2022-12-11 10:53
A) What exactly is the problem you have? Any error messages?
and
B) If there are problems with your specific member-naming-idea, why don't you just follow the well working AppGini standard? Just would like to know the reason. Are you planning LDAP integration or something?
Did you try with backslash \ like in Microsoft Active Directory (*commercial product)
I'm stuck on 5.97 AppGini due the impossibility to re-use the LDAP auth trick (
viewtopic.php?t=2707) on newer versions, after function logInMember() disappeared.
Has anyone managed to activate the feature in the new versions ?
ALex.