changeable passwords
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: changeable passwords
Sorry for the confusion. What I was trying to say , is if I want to change the password specially for the student in the App, is there a way for me to change it? because I wanted to be able to generate a temporary password and allowed them to change it , in addition to that As a super admin I want to be able to go in an change the password from the Admin card.
Again sorry!!!!!!!
Again sorry!!!!!!!
Re: changeable passwords
Hi,
Do I understand correctly that you want each student (and the admins) to be able to change his or her password into a custom password? In any case, you'll have to save the passwords in a file on disk and not in the standalone application. It also means that students need a user name. I could imagine that there is a field with a list of students in the admin's screen and a if he clicks on a student's name, he could enter a password in a field, which would be saved to a file. You could make just one tab-delimited file with names in the first column and passwords in the second column. When the app opens, this list is read into memory and the first column is displayed in the field on the admin's screen. I don't think that the admin should be able to see a password, but he should be able to reset it. The Reset button might look like this:
The student screen would have a similar script, but instead of a list of students, he would only see his own name, which he needs to enter in a field on the first card. This means that you might want to replace the ask dialog window with a password field like the one in this list (but there are more password fields available, just search this forum). The student can only go to the next screen if the password is correct and there he will find a button with a script similar to the script above, but the first line would be something like
This is not a complete solution. It is just an example of how you could update the list. You will also need a script that puts the file with the student list into variable gStudentList. Just start scripting and ask more questions along the way.
Kind regards,
Mark
Do I understand correctly that you want each student (and the admins) to be able to change his or her password into a custom password? In any case, you'll have to save the passwords in a file on disk and not in the standalone application. It also means that students need a user name. I could imagine that there is a field with a list of students in the admin's screen and a if he clicks on a student's name, he could enter a password in a field, which would be saved to a file. You could make just one tab-delimited file with names in the first column and passwords in the second column. When the app opens, this list is read into memory and the first column is displayed in the field on the admin's screen. I don't think that the admin should be able to see a password, but he should be able to reset it. The Reset button might look like this:
Code: Select all
global gStudentList
on resetPassword
put the selectedText of fld "Student List" into myStudentName
put fld "New Password" into myNewPassword
put lineoffset(myStudentName & tab,gStudentList) into myLineNr
put myStudentName & tab & myNewPassword into line myLineNr of gStudentList
put specialfolderpath("preferences") & "/students_pw_1001.prefs" into myPath
put gStudentList into URL ("binfile:" & myPath)
end resetPassword
Code: Select all
put fld "Individual Student" into myStudentName
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: changeable passwords
I love this forum so far. You "rock" Marck. I am trying to reproduce my authorware application and so war , I am happy to be with LiveCode.
Re: changeable passwords
Sorry, it looks like I missed some steps.
I worked on my app tonight but I was not able to implement what I have been told.
The first step with 3 different passwords for some reasons , I always get " the Password id wrong " message popping up. I just copied the code and paste it. I don't know if I need to define the three passwords or no before using the code but it didn't work .
I skipped and moved to the step 2 where wanted to implement the change of password, here I got an error on "reset password" line.
I am new to this maybe I missed some parts in the implementation process .
I also made a donation on website link that you sent me , I got the password stack but I didn't know how to use it.
Thank you for your help MArck, but I think, I messed it up
I worked on my app tonight but I was not able to implement what I have been told.
The first step with 3 different passwords for some reasons , I always get " the Password id wrong " message popping up. I just copied the code and paste it. I don't know if I need to define the three passwords or no before using the code but it didn't work .
I skipped and moved to the step 2 where wanted to implement the change of password, here I got an error on "reset password" line.
I am new to this maybe I missed some parts in the implementation process .
I also made a donation on website link that you sent me , I got the password stack but I didn't know how to use it.
Thank you for your help MArck, but I think, I messed it up
Re: changeable passwords
Hi,
I wrote: "This is not a complete solution. It is just an example of how you could update the list." I mean this very seriously. There is too much to this app to provide you with complete instructions. I'd start with just 2 cards and two fields and one button on the first card. Perhaps even forget about encryption and just check that the user has entered a correct name and password. Add the encryption as a second step and let me know if it works for you.
Kind regards,
Mark
I wrote: "This is not a complete solution. It is just an example of how you could update the list." I mean this very seriously. There is too much to this app to provide you with complete instructions. I'd start with just 2 cards and two fields and one button on the first card. Perhaps even forget about encryption and just check that the user has entered a correct name and password. Add the encryption as a second step and let me know if it works for you.
Kind regards,
Mark
Last edited by Mark on Wed Dec 19, 2012 4:47 pm, edited 1 time in total.
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: changeable passwords
Hi ouagadeal,
Best
Klaus
maybe you should also copy/paste the correct names!ouagadeal wrote:...MArck...

Best
Klaus
Re: changeable passwords
thank you Mark for the update. Can you tell me what exactly you want me to add to the code? I really appreciate your help.
Re: changeable passwords
Hi ouagadeal,
I'd really like you to come up with a first attempt. Make that card with two fields and one button and try something. Tell me how far you got and I'll help you with the next step.
Did you read in the documentation about the mouseUp message, the put command and the if-then-else structure?
Kind regards,
Mark
I'd really like you to come up with a first attempt. Make that card with two fields and one button and try something. Tell me how far you got and I'll help you with the next step.
Did you read in the documentation about the mouseUp message, the put command and the if-then-else structure?
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: changeable passwords
Will do tonight and get back to you!
thanks
thanks