Difference between revisions of "MOR API user login"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 9: | Line 9: | ||
==Result== | ==Result== | ||
<?xml version="1.0" standalone="yes"?> | <?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<action> | <action> | ||
<name>login</name> | <name>login</name> | ||
Line 20: | Line 20: | ||
---- | ---- | ||
<?xml version="1.0" standalone="yes"?> | <?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<action> | <action> | ||
<name>login</name> | <name>login</name> |
Revision as of 02:49, 18 February 2008
Logs in user into MOR
Request
HTML POST: http://<SERVER_IP>/mor/api/login?u=username&p=password
Result
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <action> <name>login</name> <status>ok</status> </action>
Everything is ok. User is logged in to the system.
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <action> <name>login</name> <status>failed</status> </action>
This means that wrong username and/or password and user can't be authenticated.