diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4c2bfc42..181dc341 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -22,8 +22,8 @@ FIRST CLIENT SOURCE CODE COMMIT JAN 3rd 2019 # OUTSTANDING MAJOR AREAS TO BETA -todo: fresh boot no license should pre fill super user password and login as there is no list offered and it's a high barrier to find it - actually, any time the license is not the actual purchased one it should pre-fill I think + + # OUTSTANDING BEFORE RELEASE @@ -811,4 +811,4 @@ Current v8 docs home: https://www.ayanova.com/docs/ BUILD 8.0.0-beta.1-rc5 CHANGES OF NOTE -- \ No newline at end of file +- changed the login process to always pre-fill in the login and password of the superuser any time the super user is found to be set to the stock default credentials (superuser, l3tm3in) \ No newline at end of file diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index cb3e3a87..63d372b7 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -391,11 +391,17 @@ export default { try { let res = await window.$gz.api.get("notify/hello"); if (res.data != null) { + if (res.data.sudf == true) { + //superuser is default creds + vm.input.username = "superuser"; + vm.input.password = "l3tm3in"; + vm.reveal = true; //might as well show it since it's the default anyway + } vm.showEvalUsers = res.data.eval; vm.hasSmallLogo = res.data.sl; vm.hasMediumLogo = res.data.ml; vm.hasLargeLogo = res.data.ll; - vm.lcr = res.data.lcr; //license consent required flage + vm.lcr = res.data.lcr; //license consent required flag } } catch (error) { //squash it, this isn't critical