From f8c74daef504440484235725e368628a72c764e2 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Tue, 24 Nov 2015 11:47:53 +0100 Subject: [PATCH] Use object spread instead of altering passed object. --- packages/xo-server-auth-saml/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/xo-server-auth-saml/src/index.js b/packages/xo-server-auth-saml/src/index.js index 0084d4d37..a4c3d1009 100644 --- a/packages/xo-server-auth-saml/src/index.js +++ b/packages/xo-server-auth-saml/src/index.js @@ -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 }