diff --git a/src/Umbraco.Tests/App.config b/src/Umbraco.Tests/App.config
index 09fd6b24f3..a5295ad028 100644
--- a/src/Umbraco.Tests/App.config
+++ b/src/Umbraco.Tests/App.config
@@ -63,6 +63,11 @@
+
+
+
+
+
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbpasswordtoggle.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbpasswordtoggle.directive.js
index 30cfaf88b2..d75b9e2de0 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbpasswordtoggle.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbpasswordtoggle.directive.js
@@ -1,6 +1,9 @@
(function () {
'use strict';
+ // comes from https://codepen.io/jakob-e/pen/eNBQaP
+ // works fine with Angular 1.6.5 - alas not with 1.1.5 - binding issue
+
function PasswordToggleDirective($compile) {
var directive = {
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.controller.js
index 18158a5ff2..3712324132 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.controller.js
@@ -16,7 +16,13 @@
maxFileSize: Umbraco.Sys.ServerVariables.umbracoSettings.maxFileSize + "KB",
acceptedFileTypes: mediaHelper.formatFileTypes(Umbraco.Sys.ServerVariables.umbracoSettings.imageFileTypes),
uploaded: false
- }
+ }
+ $scope.togglePassword = function () {
+ console.log('toggle');
+ var elem = $("form[name='loginForm'] input[name='password']");
+ console.log(elem);
+ elem.attr("type", (elem.attr("type") === "text" ? "password" : "text"));
+ }
function init() {
// Check if it is a new user
@@ -48,7 +54,7 @@
]).then(function () {
$scope.inviteStep = Number(inviteVal);
-
+
});
}
}
@@ -82,7 +88,7 @@
var progressPercentage = parseInt(100.0 * evt.loaded / evt.total, 10);
// set percentage property on file
- $scope.avatarFile.uploadProgress = progressPercentage;
+ $scope.avatarFile.uploadProgress = progressPercentage;
}
}).success(function (data, status, headers, config) {
@@ -149,11 +155,11 @@
//error
formHelper.handleError(err);
-
+
$scope.invitedUserPasswordModel.buttonState = "error";
});
- }
+ }
};
var setFieldFocus = function (form, field) {
@@ -180,7 +186,7 @@
}
function resetInputValidation() {
- $scope.confirmPassword = "";
+ $scope.confirmPassword = "";
$scope.password = "";
$scope.login = "";
if ($scope.loginForm) {
@@ -255,7 +261,7 @@
//TODO: Do validation properly like in the invite password update
- //if the login and password are not empty we need to automatically
+ //if the login and password are not empty we need to automatically
// validate them - this is because if there are validation errors on the server
// then the user has to change both username & password to resubmit which isn't ideal,
// so if they're not empty, we'll just make sure to set them to valid.
@@ -289,7 +295,7 @@
});
//setup a watch for both of the model values changing, if they change
- // while the form is invalid, then revalidate them so that the form can
+ // while the form is invalid, then revalidate them so that the form can
// be submitted again.
$scope.loginForm.username.$viewChangeListeners.push(function () {
if ($scope.loginForm.username.$invalid) {
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.html b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.html
index a1913d76e7..6505af4de9 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.html
@@ -149,8 +149,9 @@
We have created a bunch of 'how-to' videos, to get you easily started with Umbraco. Learn how to build projects in just a couple of minutes. Easiest CMS in the world.
We have created a bunch of 'how-to' videos, to get you easily started with Umbraco. Learn how to build projects in just a couple of minutes. Easiest CMS in the world.
-
-
Be a part of the community
-
The Umbraco community is the best of its kind, be sure to visit, and if you have any questions, we're sure that you can get your answers from the community.
The Umbraco community is the best of its kind, be sure to visit, and if you have any questions, we’re sure that you can get your answers from the community.