Page 1 of 1

Login name

Posted: Sat May 23, 2020 8:15 am
by arkhays
Good Day! i have a problem about login name tool. i want to show the email instead. but username, fullname and avatar are the only one that i can select. Is this possible that i want to show the email field instead?.

Thank you for the answer.

Re: Login name

Posted: Sat May 23, 2020 10:28 am
by Pablo
There is currently no option to display the email address, this information is not store din the session data.

Re: Login name

Posted: Sat May 23, 2020 11:04 am
by lummis
I am not quite sure what you are trying to do but if you want users to login using their email address rather than a username, that is possible.

You will need to record the email address as the username and then in the Login object under Username Label change to Email Address as a reminder to the user when they Login. If you are using the Signup object to get users to register then again you will need to change the Username Label to E-mail, although this does mean that you will have the E-mail appearing twice on the signup form.

Re: Login name

Posted: Mon Dec 20, 2021 11:39 am
by luputu
Pablo wrote: Sat May 23, 2020 10:28 am There is currently no option to display the email address, this information is not store din the session data.
I want to show the username on form automatically when user filling form or submitting form and recorded on mysql database. how can I do that ?
till now I just can show the username on from but not recorded to mysql database.

Re: Login name

Posted: Mon Dec 20, 2021 12:27 pm
by Pablo
Do you mean the username from the login tools?

Code: Select all

<?php echo $_SESSION['username']; ?>

Re: Login name

Posted: Mon Dec 20, 2021 12:51 pm
by lummis
Just to clarify what Pablo has said, this needs to be placed as the Initial Value in an Editbox on your Form.

Re: Login name

Posted: Wed Dec 22, 2021 2:41 am
by luputu
thanks Pablo, and to show email from login name?

Re: Login name

Posted: Wed Dec 22, 2021 2:41 am
by luputu
lummis wrote: Mon Dec 20, 2021 12:51 pm Just to clarify what Pablo has said, this needs to be placed as the Initial Value in an Editbox on your Form.
Thanks Lummis, how to show email from login name?

Re: Login name

Posted: Wed Dec 22, 2021 7:44 am
by lummis
Exactly the same but use 'email' in place of 'username'

Re: Login name

Posted: Wed Dec 22, 2021 1:23 pm
by luputu
lummis wrote: Wed Dec 22, 2021 7:44 am Exactly the same but use 'email' in place of 'username'
it doesn't work i've tried with <?php echo $_SESSION['email']; ?>

Re: Login name

Posted: Wed Dec 22, 2021 1:33 pm
by Pablo
There is currently no option to display the email address, this information is not store din the session data.

Re: Login name

Posted: Wed Dec 22, 2021 10:19 pm
by lummis
Apologies luputu, I thought that it was stored. :oops: