cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nagoor
Helper II
Helper II

Update Password using SharePoint list

Dear Champs, Can anyone help me on the below query.

 

I have created a SharePoint list as Userdata management where it contains 1) User Name 2) Password 3) Access type (Admin/user)

 

While first time login, the user need to change the password, where i want to update that password to SharePoint list. 

 

I tried creating a Edit form -> where they can have a visual  only the field user name and password, but unluckily i'm unable to user it i am getting that edit windows.  Also, its not counting as first time login. 

 

It will be helpful if someone help on me in that  

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @nagoor ,

Do you want force user to change his password at his first login before using this app?

If so, I suggest you justify whether this user has changed his password before based on Created time and Modified time.

Try to set like this:
1)log in page

insert two textinputs to make user enter username and password

insert a button to log in

set the button's OnSelect:

If(
IsEmpty(
         LookUp(listname,Username=Textinput1.Text&&Password=Textinput2.Text)
        ),
Notify("wrong password!"), 
     If(
        LookUp(listname,Username=Textinput1.Text&&Password=Textinput2.Text).Created=
        LookUp(listname,Username=Textinput1.Text&&Password=Textinput2.Text).Modified,
        Notify("please modify your password!");Navigate(Screen2),
        Navigate(Screen3)
        )
)

997.PNG

 

2)in screen2

insert an edit form, set its data source to your sharepoint list

set the edit form's Item:

LookUp(listname,Username=Textinput1.Text&&Password=Textinput2.Text)

 set the edit form's DefaultMode:

FormMode.Edit

unlock the datacards for username and password, delete the username textinput's Default and delete the password textinput's Default.

Just like this:

996.PNG

 

Then even in edit form, the textinput will display as blank by default.

insert a submit button, set its OnSelect:

SubmitForm(Form1)

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
eka24
Super User III
Super User III

I believe you if you already have a login system and what is needed now is changing and update password, the EditForm is the way to go. So explain further why the EditForm is not working. You can show a screenshot of the edit form and the Sharepointlist

Hi @eka24  

 

Yes, you are right i'm having login system enabled with the SP list items. 

 

I have created the Edit form page and connected the SP userdetails list to that form - its in Edit mode

 

If i select a button to show that i shows no item, i dont know what i'm missing. 

 

nagoor_0-1599482949407.png

 

 

 

Hi @nagoor ,

Do you want force user to change his password at his first login before using this app?

If so, I suggest you justify whether this user has changed his password before based on Created time and Modified time.

Try to set like this:
1)log in page

insert two textinputs to make user enter username and password

insert a button to log in

set the button's OnSelect:

If(
IsEmpty(
         LookUp(listname,Username=Textinput1.Text&&Password=Textinput2.Text)
        ),
Notify("wrong password!"), 
     If(
        LookUp(listname,Username=Textinput1.Text&&Password=Textinput2.Text).Created=
        LookUp(listname,Username=Textinput1.Text&&Password=Textinput2.Text).Modified,
        Notify("please modify your password!");Navigate(Screen2),
        Navigate(Screen3)
        )
)

997.PNG

 

2)in screen2

insert an edit form, set its data source to your sharepoint list

set the edit form's Item:

LookUp(listname,Username=Textinput1.Text&&Password=Textinput2.Text)

 set the edit form's DefaultMode:

FormMode.Edit

unlock the datacards for username and password, delete the username textinput's Default and delete the password textinput's Default.

Just like this:

996.PNG

 

Then even in edit form, the textinput will display as blank by default.

insert a submit button, set its OnSelect:

SubmitForm(Form1)

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,218)