package com.atlassian.stash.internal.web.admin;

import com.atlassian.bitbucket.validation.annotation.FieldEquals;
import com.atlassian.bitbucket.validation.annotation.RequiredString;

@FieldEquals(fields = {"password", "confirmPassword"}, reportingField = "confirmPassword", message = "{com.atlassian.bitbucket.validation.passwords.notequals.message}")
public class UserWithPasswordForm extends UserForm {
    private String password;
    private String confirmPassword;

    public UserWithPasswordForm() {
    }

    public UserWithPasswordForm(boolean notify) {
        this.notify = notify;
    }

    @RequiredString(size = 255)
    public String getPassword() {
        return password;
    }

    @RequiredString(size = 255)
    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }

}
