femanager icon indicating copy to clipboard operation
femanager copied to clipboard

No verification of passwords for an invitation

Open Klaus-PeterSeher opened this issue 8 months ago • 0 comments

Hello,

If I use the ‘Invite’ plugin, so that the user receives an invitation and confirms the invitation, he can set the password, but here the validation is missing, whether both passwords match.

Version: 7.2.3 Typo3: 11.5.38

Typoscript Config: plugin.tx_femanager { settings {

	invitation {
		# take username and copy it to the email field (so email field is not nessesary in FE)
		fillEmailWithUsername = 1

		validation {
			_enable {
				# Enable clientside Formvalidation (JavaScript)
				client = 1

				# Enable serverside Formvalidation (PHP)
				server = 1
			}

			username {
				required = 1
				uniqueInDb = 1
				mustNotInclude = space
			}

			email {
				required = 0
				email = 1
			}
		}

	}

	new {
		fillEmailWithUsername = 1

		validation {
			_enable.client = 0

			terms {
				required = 1
			}

			email {
				uniqueInDb = 1
				required = 1
				email = 1
				uniqueInPage = 1
			}

			username.required = 0
		}
	}

	edit {
		fillEmailWithUsername = 1

		email >
		username {
			required = 1
			uniqueInDb = 1
			email = 1
		}

		validation {
			_enable.client = 0
			firstName.required = 1
			lastName.required = 1
		}
	}

	invitation {
		validation {
			_enable.client = 1
		}

		validationEdit {
			_enable {
				# Enable clientside Formvalidation (JavaScript)
				client = 1

				# Enable serverside Formvalidation (PHP)
				server = 1
			}

			password {
				required = 1
				#min = 10
				#mustInclude = number,letter,special
			}

			password_repeat {
				required = 1
				sameAs = password
			}
		}
	}

}

Thanks!

Klaus-PeterSeher avatar Apr 16 '25 07:04 Klaus-PeterSeher