Use global fields

This commit is contained in:
Maxime Dor
2017-03-30 01:46:51 +02:00
parent fcca4497af
commit 843b792904

View File

@@ -88,10 +88,10 @@ class LdapProvider implements ThreePidProvider, InitializingBean {
StringBuilder matrixId = new StringBuilder() StringBuilder matrixId = new StringBuilder()
// TODO Should we turn this block into a map of functions? // TODO Should we turn this block into a map of functions?
if (StringUtils.equals("uid", ldapCfg.getType())) { if (StringUtils.equals(UID, ldapCfg.getType())) {
matrixId.append("@").append(data).append(":").append(srvCfg.getName()) matrixId.append("@").append(data).append(":").append(srvCfg.getName())
} }
if (StringUtils.equals("mxid", ldapCfg.getType())) { if (StringUtils.equals(MATRIX_ID, ldapCfg.getType())) {
matrixId.append(data) matrixId.append(data)
} }