zimki | documentation | search
 
Zimki Documentation - zimki.become

The zimki.become method sets the current user for the remainder of the request.

For example:

var users = zimki.user.search( { username: 'james' } );
if ( users[0] ) {
  zimki.become( users[0] );
}

Parent

zimki