findByUsername

abstract fun findByUsername(username: String): User?

Finds a user by their username.

Return

the user associated with the given username, or null if no such user exists.

Parameters

username

the username to search for.