This topic is locked
[SOLVED]

 Password Reminder Screen

2/21/2013 7:40:38 AM
PHPRunner General questions
D
dannche author

Dear All,
How do I remove the Username option. I only want the user to enter the email address for this screen. In my database there isn't a field for Username. Please refer to attached pic below.


Many thanks in advance.
Regards

Danny.

G
gdmacdo 2/21/2013

In the Editor page, there is a "Remind password page" page (look at the very top of the list). You could delete the row with the username.

Sergey Kornilov admin 2/21/2013

As Greg mentions, you can remove those controls in Visual Editor.
There are two more things you need to do though:

  1. In Visual Editor open 'Change password' page and the following code in HTML mode:

<INPUT name=username type=hidden>


I recommend to add it right before the Email field. This field won't be visible in the browser however it's required so Javascript code doesn't break.
2. Add the following code to Change password Javascript OnLoad event:

$('input[name="searchby"]').val('email');

$('input[name="email"]').removeAttr('disabled').css('background-color','white').focus();


I would totally agree that this is a cumbersome solution. We'll make those things easier to modify in the next version of PHPRunner.

D
dannche author 2/21/2013



As Greg mentions, you can remove those controls in Visual Editor.
There are two more things you need to do though:

  1. In Visual Editor open 'Change password' page and the following code in HTML mode:

<INPUT name=username type=hidden>


I recommend to add it right before the Email field. This field won't be visible in the browser however it's required so Javascript code doesn't break.
2. Add the following code to Change password Javascript OnLoad event:

$('input[name="searchby"]').val('email');

$('input[name="email"]').removeAttr('disabled').css('background-color','white').focus();


I would totally agree that this is a cumbersome solution. We'll make those things easier to modify in the next version of PHPRunner.


Dear Sergey,
I tried both Greg and your solution and it didn't work. However still thank you for the solution though. I make the following changes using both your recommendation to get it working.

  1. I did your Step 1 first.
  2. Then I delete the username as Greg suggest.
  3. Then I add your Step 2 to the Password reminder page and not the Change Password page.
    Anyway...thank you for precious help. At times, it's a struggle but it's all worth the effort. Is there a way I can give my input on the software so that the next version will be a better than ever?
    Regards

    Danny

    Malaysia

Sergey Kornilov admin 2/21/2013

That were a mistype on my part, 'Remind Password' page it is.