company logo

DatabaseContext :: login - User Login

The function calls the virtual execLogin() function in order to verify user's name and password. In order to call application specific login dialogs, the function should be called in the doBeforeOpen() handler of the database context class (console application) or project context class (ODABA GUI applications).

When login failed, the function returns false.

Return value:  Execution error ( int32  )

The value is usually returned from context functions or actions in order to report the result of execution. The variable may contain following values:

  • -1: function/action not executed
  • 0: function executed normally
  • 1-9: Function executed with errors. Error codes depend on the function/action called.

Implementation details

int32 DatabaseContext  :: login ( odaba::Property &rProperty )
  • rProperty - Property reference

    A property handle refers to a (usually) opened property. Invalid properties may cause an exception.