Merge pull request #111 from Pear-Trading/ben/fix/postcode-validation

Capitalise entered postcodes
This commit is contained in:
Rumperuu 2020-10-18 13:32:21 +01:00 committed by GitHub
commit e6f7ba4b65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -70,7 +70,7 @@ export class RegisterComponent {
password: signupForm.password, password: signupForm.password,
display_name: customerForm.display_name, display_name: customerForm.display_name,
full_name: customerForm.full_name, full_name: customerForm.full_name,
postcode: customerForm.postcode, postcode: customerForm.postcode.toUpperCase(),
year_of_birth: customerForm.year_of_birth, year_of_birth: customerForm.year_of_birth,
}; };
console.log(data); console.log(data);
@ -114,7 +114,7 @@ export class RegisterComponent {
sector: organisationForm.sector, sector: organisationForm.sector,
street_name: organisationForm.street_name, street_name: organisationForm.street_name,
town: organisationForm.town, town: organisationForm.town,
postcode: organisationForm.postcode, postcode: organisationForm.postcode.toUpperCase(),
}; };
this.api this.api
.register(data) .register(data)

View file

@ -89,7 +89,7 @@ export class AccountEditComponent implements OnInit {
const submitData = { const submitData = {
email: settingForm.email, email: settingForm.email,
postcode: settingForm.postcode, postcode: settingForm.postcode.toUpperCase(),
password: settingForm.password, password: settingForm.password,
new_password: settingForm.new_password, new_password: settingForm.new_password,
name: settingOrganisationForm.name, name: settingOrganisationForm.name,
@ -142,7 +142,7 @@ export class AccountEditComponent implements OnInit {
const submitData = { const submitData = {
email: settingForm.email, email: settingForm.email,
postcode: settingForm.postcode, postcode: settingForm.postcode.toUpperCase(),
password: settingForm.password, password: settingForm.password,
new_password: settingForm.new_password, new_password: settingForm.new_password,
full_name: settingCustomerForm.full_name, full_name: settingCustomerForm.full_name,