Hi Guarav,
You could create a special user like "web" can execute the login() function
getting any parameters.

On this function you can do your query and change the user based on your
requirements.

Lvc@



On 13 May 2014 11:31, Gaurav Dhiman <[email protected]> wrote:

> Right now I am calling 
> connect<https://github.com/orientechnologies/orientdb/wiki/OrientDB-REST#connect>REST
>  call to login a user in system, but connect only checks the username
> against OUser.name field. If I want the username to be either email id or
> phone number (anyone of those), I think I need to write my own JS function
> (in OrientDB) and do the required checks and then set the session.
>
> Question is how to do it ?
> I will appreciate if someone can share the example code.
>
> Regards,
> Gaurav
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to