[NIFIREG-374] reload nifi registry config upon successful login

Signed-off-by: Nathan Gough <thenatog@gmail.com>

This closes #269.
diff --git a/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/components/login/dialogs/nf-registry-user-login.js b/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/components/login/dialogs/nf-registry-user-login.js
index d4da84c..e9c024e 100644
--- a/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/components/login/dialogs/nf-registry-user-login.js
+++ b/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/components/login/dialogs/nf-registry-user-login.js
@@ -53,10 +53,13 @@
         var self = this;
         this.nfRegistryApi.postToLogin(username.value, password.value).subscribe(function (response) {
             if (response || response.status === 200) {
-                //successful login
-                self.dialogRef.close();
-                self.nfRegistryService.currentUser.anonymous = false;
-                self.nfRegistryLoginAuthGuard.checkLogin(self.nfRegistryService.redirectUrl);
+                //successful login update registry config
+                self.nfRegistryApi.getRegistryConfig().subscribe(function (registryConfig) {
+                    self.nfRegistryService.registry.config = registryConfig;
+                    self.nfRegistryService.currentUser.anonymous = false;
+                    self.dialogRef.close();
+                    self.nfRegistryLoginAuthGuard.checkLogin(self.nfRegistryService.redirectUrl);
+                });
             }
         });
     },