User directed reset of password

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

User directed reset of password

#1

Postby kotinkarwak » Sun Nov 15, 2015 8:35 pm

Hi,
When utilizing internal security as provided to make use of user roles etc, wondered, how a defined user can amend their own password. The idea is to have a "profile" page available for the users where they can provide extra information like e-mail address to be saved to a database (external resource) whilst also being able to change their current password.
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#2

Postby Segi » Mon Nov 16, 2015 6:45 pm

hey there kotinkarwak,

I have a page like this on our internal network and it should be relatively easy to do this.

I'm assuming that you are using the same database table that you had used to verify the user.

First off, are your login credentials (password specifically) stored in plain text in the database ?

If not, I would highly recommend encrypting it. Check out this site on using AES encryption in MySQL:

https://dev.mysql.com/doc/refman/5.5/en ... tions.html

Once the user logs in you can create a form with an email address field and password field. The password field can be set to password type so it will automatically insert * as the user types characters into it.

When the user clicks on a submit button, you would map the fields to the USERS table resource and call tables.USERS.updateTable()
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#3

Postby kotinkarwak » Mon Nov 16, 2015 8:29 pm

I am hoping to use the external database option we worked on but also neede to know for the internal one how password reset is meant to be implemented.

For the external db, I have created a form with the relevant fields, password/confirm being set to type as appropriate. These are fields but did you mean I should be working from a table that points to the database and mapped as the form controls?
Will read up on securing the database as suggested.

A query already in my mind. Once encrypted, will the routine to compare the passwords need to change?
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#4

Postby Segi » Mon Nov 16, 2015 8:41 pm

The way that you'd implement is by creating a new form called profile and import the USERS database resource. drag the password field and add a submit button then call tables.USERS.updateTable()
0 x


Who is online

Users browsing this forum: No registered users and 16 guests