Ifd:login

From dev.ifd-library.org

Jump to: navigation, search

API version 2

String login(String email, String password) 
                      throws IfdServerException

Method to login the user if password is correct, and return a session id

Input:

  • string email The email of the user logging in, serving as the login identifier.
  • string password The password of the user logging in.

Return:

  • string - a string with the session id for the user

API version 3

No change in function i API 3.0


Back to the API

Comments: I kind of like the idea of using the email as the unique login id for the user. This ensures uniqeness, and it is convenient. Many sites to this, and to me it feels right. What do you think?

Håvard.Bell