Accounts.findUserByUsername

Server

Accounts.findUserByUsername(username)

import { Accounts } from 'meteor/accounts-base' Source

Finds the user with the specified username. First tries to match username case sensitively; if that fails, it tries case insensitively; but if more than one user matches the case insensitive search, it returns null.

Arguments

username String

The username to look for

doc_Meteor
2016-05-29 17:17:28
Comments
Leave a Comment

Please login to continue.