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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.