in app/controllers/Login.scala [31:40]
def isAuthorised(id: UserIdentity) = authorisationError(id).isEmpty
def authorisationError(id: UserIdentity): Option[String] = if (id.emailDomain != "guardian.co.uk") Some(s"The email you are using to login: ${id.email}. Please try again with another email") else None
}
class Login(
googleAuthConfig: GoogleAuthConfig,
override val wsClient: WSClient,
controllerComponents: ControllerComponents)
(implicit val executionContext: ExecutionContext) extends AbstractController(controllerComponents) with LoginSupport {