You are not logged in.
Pages: 1
Thanks for the impressive quick reply!
I got it to work, i thought i needed to do something special when i defined my methods.
I can't get it to work with:
username=USERNAME&password=PASSWORD
In the HTTP POST, but it does work with
["USERNAME","PASSWORD"]
Perhaps support for the first version would be nice?
Thanks again for the quick response!
Hello!
This is my first post here, so please be patient if im posting it wrong or something.
Im trying to use the interfaced based version and i want to make a method that is used for logging in a user.
I know there is something made default in mormot, but i cant use it for this specific type of user.
I also tried to follow the MVC-example.
IUser = interface(IInvokable) ['{666521A6-CB98-4C71-96D7-40890F0B29C6}']
function ChangePassword(const oldPassword, newPassword, token:string):TServiceCustomAnswer;
function Login(const userName,password:string):TServiceCustomAnswer;
function Logout(const token:string):TServiceCustomAnswer;
function ResetPassword(const userName,email:string):TServiceCustomAnswer;
end;
When i try to for example make a POST to LOGIN with the post parameters username and password i get a 400-error saying
errorText: "Shared execution failed (probably due to bad input parameters) for IUser.Login"
Any ideas? Any help would be really appreciated.
Greetings
Tobias
Pages: 1