Files
odc-analyzer/app/services/AllowAllCredentialsVerificationService.scala
Šesták Vít 4b87ced31f Initial commit
2016-01-10 17:31:07 +01:00

14 lines
396 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[Boolean] = Future.successful(true)
}