Sarina DuPont from Embarcadero has a new blog post up expanding on BaaS user management with Kinvey in Delphi XE6 Firemonkey. These components should work cross platform on Windows, Android, IOS, and OSX. They are also available in AppMethod. This new example is a pretty complete login system using the BaaS components. It provides sign up capability, login capability, logout capability, and change password capability. Once you understand how the data comes back from the BaaS calls into the TBackendEntityValue object it looks like BaaS is a breeze to use. In the example she has a TBackendEntityValue as a private variable on the form where the results of the Login and Signup process are stored. It’s where you can go to access the AuthToken once you have logged into the BaaS provider. In any event the new piece of code in this demo is for changing the user password. This is done by creating a JSON object pair and sending it to the server using the UpdateUser function. Here is the code snippet:
procedure TForm7.ButtonChangePasswordClick(Sender: TObject);
LPassword := TJSONObject.Create;
BackendUsers1.Users.UpdateUser(FLogin, LPassword, LUpdatedAt);
Complete BaaS Login System Example For Delphi XE6 Firemonkey On Android And IOS by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Tokyo Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.