vertx / io.vertx.ext.auth.mongo / MongoAuth / setUsernameCredentialField

setUsernameCredentialField

abstract fun setUsernameCredentialField(fieldName: String): MongoAuth

Set the name of the field to be used as property for the username in the method #authenticate(JsonObject, io.vertx.core.Handler). Defaults to #DEFAULT_CREDENTIAL_USERNAME_FIELD

Parameters

fieldName - the name of the field to be used

Return
the current instance itself for fluent calls