@** * Yona, 21st Century Project Hosting SW * * Copyright Yona & Yobi Authors & NAVER Corp. * https://yona.io **@ @import play.data.Form @(message:String, authInfoForm: Form[AuthInfo], redirectUrl:String) @import com.feth.play.module.pa.views.html._ @import com.feth.play.module.pa.PlayAuthenticate._; @import play.mvc.Http._; @import utils.TemplateHelper._ @import org.apache.commons.lang3.StringUtils @isSocialLoginSupport = @{ val allowedProviders = play.Configuration.root.getString("application.social.login.support", "").replaceAll(" ", "").split(",") allowedProviders.nonEmpty && StringUtils.isNotBlank(allowedProviders(0)) } @loginIdPlaceHolder = @{ if(StringUtils.isNotBlank(Application.LOGIN_PAGE_LOGINID_PLACEHOLDER)){ Application.LOGIN_PAGE_LOGINID_PLACEHOLDER } else { Messages("user.login.key") } } @passwordPlaceHolder = @{ if(StringUtils.isNotBlank(Application.LOGIN_PAGE_PASSWORD_PLACEHOLDER)){ Application.LOGIN_PAGE_PASSWORD_PLACEHOLDER } else { Messages("user.password") } } @siteLayout(message, utils.MenuType.NONE) {

@Html(Messages("title.loginFor", utils.Config.getSiteName))

@Messages("app.description")

@if(UserApp.isUsingEmailVerification){ }
@if(UserApp.useSocialLoginOnly){
@Messages("app.warn.support.social.login.only")
} else {
}
@currentAuth() { auth => @if(auth == null) { @if(isSocialLoginSupport) { @if(!UserApp.useSocialLoginOnly) { } } @forProviders() { p => @if(isAllowedOAuthProvider(p.getKey)) { } } } }
@if(!UserApp.useSocialLoginOnly) {
}
}