Questions tagged [password-confirmation]
53 questions
27
votes
5 answers
Django modelform how to add a confirm password field?
Here I need to add an extra confirmation password in my form.I used Django's modelform. I also need to validate both passwords. It must raise a validation error if password1 != password2.
Here is my forms.py:
class UserForm(forms.ModelForm):
…

sunnysm
- 339
- 2
- 5
- 11
18
votes
2 answers
Validators, password confirmation
I can't figure out why the model doesen't check for the password confirmation, this is the code of the model:
class User < ActiveRecord::Base
attr_accessor :password_confirmation
validates :email, :presence =>true,
…

Joe
- 1,747
- 3
- 17
- 24
13
votes
1 answer
Can I check password confirmation in bootstrap 4 with default validation options?
I have read https://getbootstrap.com/docs/4.0/components/forms/#validation. After reading I guess it is possible to check confirmation password in client site using bootstrap 4 default options. And, as I new in web development I can't figure out the…
user9644880
8
votes
4 answers
Undefined method password_changed? Error
I'm trying to set my program so that the password only is validated if it is changed (so a user can edit other information without having to put in their password).
I am currently getting an error that says
NoMethodError in…

steffi2392
- 1,345
- 3
- 19
- 19
7
votes
1 answer
rails 4 password confirmation ca
I'm going through one of the Rails tutorials, during a section on user validations, I keep getting an error telling me my password confirmations can't be blank when editing/creating a user. I looked through previous answers and it looks like people…

NoobException
- 616
- 9
- 20
6
votes
3 answers
AngularJS password confirmation noMatch not working?
I have this script here:
angular.module('UserValidation', []).directive('validPasswordC', function () {
return {
require: 'ngModel',
link: function (scope, elm, attrs, ctrl) {
ctrl.$parsers.unshift(function…

kgam
- 217
- 3
- 4
- 12
4
votes
2 answers
Rails validate only on user create or update
I have a validates_confirmation_of :password in my User model. The problem is I also run @comment.user.save! when a comment is created to update some attributes on the user account.
I get an error when creating a comment Validation failed: Password…

Tony Beninate
- 1,926
- 1
- 24
- 44
4
votes
0 answers
Adding confirm password field into default Cognito UI
I have a Cognito User pool instance and I need to add a confirm password field in the signup form of Hosted Ui. However, I can't specify it anywhere in the userpool configuration. Does anyone know how to add a confirm password field?
(Note: I do…

Zainab
- 51
- 4
4
votes
1 answer
Connection could not be established with host smtp.gmail.com [Permission denied #13]
I am developing using Laravel-5.1. I have the .env config file working properly on development environment which is windows 8, 4GB RAM. When I deployed to the remote server which is Centos-6, I began to get this error :
Swift_TransportException in…

ken4ward
- 2,246
- 5
- 49
- 89
4
votes
1 answer
Tell AuthLogic to not use a password confirmation
I have this view:
new.html.haml
%h1 New account
- form_for @user do |f|
= f.error_messages
= render :partial => "form", :object => f
= f.submit "Create account"
_form.html.haml
= form.label :email
= form.text_field :email
%br/
= form.label…
user142019
3
votes
2 answers
Should I add a confirm password field in android?
I am new to android, and I just started making a signup activity for my app. I found a number of tutorials like this one.
What really got me confused is that in all of the tutorials the Confirm/Reenter password part is skipped, so my question would…

MCVC
- 33
- 1
- 1
- 6
2
votes
3 answers
perl password confirmation
can anyone give me a sample code for letting a user to enter a password two times and compare them and print a text if they are correct or not, like when we create a new user. Thanks in advance...

user403295
- 818
- 3
- 15
- 19
2
votes
1 answer
Validate password with confirm password during sign up in php
We are using below code for "sign up". we have only password field , we want to add confirm password field.
signup.php
if(isset($_POST['btn-signup']))
{
$uname = trim($_POST['txtuname']);
$email = trim($_POST['txtemail']);
$upass =…
user6619012
2
votes
1 answer
When checking password, it only cares about the first 8 characters
I have a sign-up form that creates a profile and an "Edit Profile" page that allows the user to change information as long as they also enter their password.
The problem is that the "Edit Profile" page only makes sure that the first 8 characters of…

real_big_words
- 37
- 8
2
votes
2 answers
Password confirmation can't be blank
Would anybody who has more experience with Rails 4 be able to help me out. I'm currently going through "Rails 4 in Action" and I'm having trouble getting one of the specs from the book to pass (specifically from chapter 7.5: Basic Access control --…

Alphonse23
- 113
- 2
- 10