I'm creating a change pass functionality and im learning and using this logic to the other user that finding the same functionality too but for me there's a problem when i clicked the scope there is no users included. what seems to be the problem
Here's the one that i'm studying rebuilding the logic
Hi @budang haba
1. There is no need of passing user id because you are passing whole user record in the action.
2. and in the action convert the input as user only instead of user record.
3. do @Wasim Khan adviced, take dependency utils validate password action.
NOTE : and last combine the both server actions into one. because it does not come under best practices. as you can see there is warning on server action.
attaching the oml for help.
hope this helps
Thanks
Prince
Yes it seems that it cannot be read due to its encryption password. so it always displays "error for old password". Thank you!
and may i ask why you said "because it does not come under best practices. as you can see there is warning on server action. "???
We can not use multiple server actions on screen action. If there is logic and need to use multiple server action. To remove warning we should create new client action paste all server actions there and can get the output in output attribute. And can use this client action on screen action.
Regards,
If you have multiple server action calls in a client action, that is not performant. Every server action call is call from yours browser to the OutSystems server. If you combine the server calls into on, you have less calls to the server and your application performs better.
Not really the correct answer. It is just a warning, so you can use multiple server actions in a client action. It is however not adviced because of performance.
yes we can use and the code will work. but it will always show the warning right? and it will be visible in architecture issues right?
Yes correct. My point was, you mention it is not possible, that is not correct.
It is a warning, so as a developer, tech lead or architect, you need to decide if you can fix this performance issue by merging both server actions in one server action call. There can be reasons per situation that you might not be able to do that. That the warning remains.
You then have two options:
The purpose of the warning is not to make the warning go and disappear. The purpose is to bring a best practice violation to your attention that you, your lead or architect on the project needs to evaluate, judge and fix or not fix.
i have mentioned @Daniel Kuhlmann in solution reply that
just i used can instead of should.
rest i will take care of it next time.
Thanks for your time
I agree with you @Daniel Kuhlmann.
Wasimkhan S
@Prince Aadil Khan Panwar ,
the real problem with your comment is not about 'can' vs. 'should'.
your advice is very wrong, because you suggest people to add both server actions into a single client action. This doesn't solve the performance problem at all, the only thing it does is hide the warning.
Dorine
Please check out this link - Encrypt Password. It might be similar what you are looking for.
Regards
Prince Kumar
i've tried this but gets an error of "old password wrong"
Are you trying with the same encrypted key for changing the password?
Hi,
Hope this video will help.
https://www.youtube.com/watch?v=5wyPvHp6h1U
i've seen this but still no solution
Hi budang haba,
Check out this oml file will resolve your problem.
Reemali.
Hi Try to use it this way in your password variable assign EncyrptPassword(In_user.UserName,In_User.Password)
Hope this helps
here;'s the error
Try to call it in server action.
Please take its dependency
Encrypt password action is a server action. Try to call this in Server action. I think you are calling it in Client action.
You can try like this if you want to call it in client action.
1.Create a client action like this.
2. Set the Function property of this client action as "Yes".
3. Call this action in screen actions.
when i create and call it in server action it does not exists
Can you share your OML?
here it is sir. it seems i keep getting the old password is incorrect is that it is encrpyted and it cant read to change it
As per your code, you are checking the "Old password" as Text with Encrypted value from Database.
In order to Validate old password. You need to use Validate password action from "PlatformPasswrodUtils".
Please check this post. it will help you how to add this.
https://www.outsystems.com/forums/discussion/86901/how-to-validate-old-password-while-implementing-reset-password/