Username

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Username

Post by patsd102 » 2022-12-09 17:19

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
23.17

patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Re: Username

Post by patsd102 » 2022-12-11 10:21

I guess not :(
23.17

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Username

Post by jsetzer » 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)
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Username

Post by jsetzer » 2022-12-12 13:10

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.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Re: Username

Post by patsd102 » 2022-12-12 20:22

Thanks for the reply.

I have managed to add a forward slash to a username

Have a nice day

Pat
23.17

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Username

Post by jsetzer » 2022-12-12 20:52

Please paste your solution here for others.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Re: Username

Post by patsd102 » 2022-12-13 18:05

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.

Image


Thx Pat
23.17

A Bindi
Veteran Member
Posts: 51
Joined: 2018-01-04 18:45

Re: Username

Post by A Bindi » 2022-12-15 11:26

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.

Post Reply