Use object spread instead of altering passed object.

This commit is contained in:
Julien Fontanet
2015-11-24 11:47:53 +01:00
parent b3a593afd7
commit f8c74daef5
+2 -2
View File
@@ -41,8 +41,8 @@ class AuthSamlXoPlugin {
this._xo = xo
}
configure (conf) {
this._usernameField = extract(conf, 'usernameField', 'uid')
configure ({ usernameField, ...conf }) {
this._usernameField = usernameField
this._conf = conf
}