mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-18 23:34:34 +01:00
Initial commit
This commit is contained in:
13
app/services/AllowAllCredentialsVerificationService.scala
Normal file
13
app/services/AllowAllCredentialsVerificationService.scala
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user