Skip to content

Commit

Permalink
Capture org and roles on verification
Browse files Browse the repository at this point in the history
When we create the verification record we want to also capture the
organisation and roles as we'll be using the verification to create a
DfeSignIn::User record which expects these fields.
  • Loading branch information
rjlynch committed Sep 4, 2024
1 parent 06485ae commit 8632775
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def save
dfe_sign_in_uid: answers.dfe_sign_in_uid,
first_name: answers.dfe_sign_in_first_name,
last_name: answers.dfe_sign_in_last_name,
email: answers.dfe_sign_in_email
email: answers.dfe_sign_in_email,
dfe_sign_in_organisation_name: answers.dfe_sign_in_organisation_name,
dfe_sign_in_role_codes: answers.dfe_sign_in_role_codes
},
created_at: DateTime.now
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
"dfe_sign_in_uid" => "123",
"first_name" => "Seymoure",
"last_name" => "Skinner",
"email" => "[email protected]"
"email" => "[email protected]",
"dfe_sign_in_organisation_name" => "Springfield Elementary",
"dfe_sign_in_role_codes" => ["teacher_payments_claim_verifier"]
},
"created_at" => "2024-01-01T12:00:00.000+00:00"
}
Expand Down Expand Up @@ -112,7 +114,9 @@
"dfe_sign_in_uid" => "123",
"first_name" => "Seymoure",
"last_name" => "Skinner",
"email" => "[email protected]"
"email" => "[email protected]",
"dfe_sign_in_organisation_name" => "Springfield Elementary",
"dfe_sign_in_role_codes" => ["teacher_payments_claim_verifier"]
},
"created_at" => "2024-01-01T12:00:00.000+00:00"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
dfe_sign_in_uid: "123",
dfe_sign_in_first_name: "Seymoure",
dfe_sign_in_last_name: "Skinner",
dfe_sign_in_email: "[email protected]"
dfe_sign_in_email: "[email protected]",
dfe_sign_in_organisation_name: "Springfield Elementary",
dfe_sign_in_role_codes: ["teacher_payments_claim_verifier"]
}
)
end
Expand Down Expand Up @@ -302,7 +304,9 @@
"dfe_sign_in_uid" => "123",
"first_name" => "Seymoure",
"last_name" => "Skinner",
"email" => "[email protected]"
"email" => "[email protected]",
"dfe_sign_in_organisation_name" => "Springfield Elementary",
"dfe_sign_in_role_codes" => ["teacher_payments_claim_verifier"]
},
"created_at" => "2024-01-01T12:00:00.000+00:00"
}
Expand Down

0 comments on commit 8632775

Please sign in to comment.