mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-13 23:33:53 +01:00
14 lines
422 B
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))
|
|
|
|
}
|