findByUsername

abstract fun findByUsername(username: String): User?

Find a user by username.

Return

The user if found, null otherwise.

Parameters

username

The username of the user.