zzOzz / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

Guest Registration module - default expiration date issue #641

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable the gest Registraiton module
2. Put a number of days in "Maximum Duration of Account Validity" (i.e. 30)
3. Click "Register Guest User" From the main module
4 Enter all the form fields that are configured, but don't touch the expiration 
date in the DijitDateTextBox (which shows today + 30 days a enddate)
5. Submit the form
6. The LDAP entry is created without an enddate

What is the expected output? What do you see instead?
I would expect the enddate that was in the submitted form (today + 30 days). 
Some further analysis show that upon form initialisation the date that is 
presented in the DijitDateTextBox is actually not applied to the actual input 
type="hidden" that is used as a expiration date value for the form submit 
(DijitDateTextBox-form-initialization.png). Therefore no expiration date is 
submitted when you leave the DijitDateTextBox at the suggested value.

As soon as you click on the DijitDateTextBox the values gets added to the input 
type="hidden" and the expiration date is submitted

Please use labels and text to provide additional information 
(DijitDateTextBox-form-after click.png)

PWM version is 1.7.1 Tested Browsers are Google Chrome Version 39.0.2171.71 
(64-bit) and Mozilla Firefox 33.1

Original issue reported on code.google.com by sebastia...@gmail.com on 28 Nov 2014 at 8:23

Attachments: