guardian/pan-domain-authentication — pull request #1 by theefer (2014-10-06 15:33:38+00:00)
Title: Simple helper to read out emailDomain

Makes it tidier to check the domain:

``` scala
override def validateUser(authedUser: AuthenticatedUser): Boolean = {
(authedUser.user.emailDomain == "guardian.co.uk") && authedUser.multiFactor
}
```

vs the current:

``` scala
override def validateUser(authedUser: AuthenticatedUser): Boolean = {
(authedUser.user.email endsWith ("@guardian.co.uk")) && authedUser.multiFactor
}
```