Opened 12 years ago
Closed 12 years ago
#300 closed enhancement (fixed)
Allow non-standard personal numbers
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | major | Milestone: | Reggie v1.1 |
Component: | net.sf.basedb.reggie | Keywords: | |
Cc: |
Description (last modified by )
The Personal number is usually a swedish personnummer. But there are exceptions when a person is not a swedish citizen. See http://owaspsweden.blogspot.com/2009/10/dds-programmera-med-personnummer-del-2.html
Reggie should display a warning instead of an error when an "invalid" personal number is encountered. The automatic forwarding to step 2 should not happen. The user must click on the "Next" button to verify that the personal number should be used as is.
Change History (5)
comment:1 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 12 years ago by
Status: | new → assigned |
---|
comment:3 Changed 12 years ago by
comment:4 Changed 12 years ago by
Summary: | Allow invalid personal numbers → Allow non-standard personal numbers |
---|
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
After some more investigations it seems like there are three main types of numbers:
So, in the code, the validation procedure goes like this (pnr is short for personal number):