Tag: password-confirmation

AngularJS Passwort-Bestätigung noMatch nicht funktioniert?

Anzahl der Antworten 2 Antworten
Habe ich dieses Skript hier: angular.module('UserValidation', ).directive('validPasswordC', function () { return { require: 'ngModel', link: function (scope, elm, attrs, ctrl) { ctrl.$parsers.unshift(function (viewValue, $scope) { var noMatch = viewValue != scope.signupForm.password.$viewValue ctrl.$setValidity('noMatch', !noMatch) }) } } });

Validatoren, Passwortbestätigung

Anzahl der Antworten 2 Antworten
Ich nicht herausfinden können, warum das Modell doesen ' T check für die Bestätigung des Passworts, das ist der code des Modells: class User < ActiveRecord::Base attr_accessor :password_confirmation validates :email, :presence =>true, :uniqueness=>true validates :password, :presence =>true,