Files
odc-analyzer/app/services/AllowAllCredentialsVerificationService.scala

14 lines
422 B
Scala

package services
import scala.concurrent.Future
class AllowAllCredentialsVerificationService(app: play.api.Application) extends CredentialsVerificationService{
if(app.mode != play.api.Mode.Dev){
// safety check:
sys.error("allow-all can be used in dev mode only")
}
override def verifyCredentials(username: String, password: String): Future[Either[String, String]] = Future.successful(Right(username))
}