UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Unverified Commit 879d0f4e authored by Luis Lahoz's avatar Luis Lahoz
Browse files

another update for TCODE

parent 51ae4c21
No related branches found
No related tags found
2 merge requests!86Draft: Cnap 456 config refactor,!81New realm groups fix
......@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Update tests to adapt to changes in RegistrationValidation.java
- Removed the auto-population of username and made the field editable.
- Added back email confirmation during registration to CAC users.
- Added mm_id during registration for TCODE mattermost.
## [3.5.7] - 2024-10-02
......
......@@ -213,6 +213,7 @@ public class RegistrationValidation extends RegistrationUserCreation {
private static void generateUniqueStringIdForMattermost(
final MultivaluedMap<String, String> formData,
final UserModel user) {
String email = formData.getFirst(Validation.FIELD_EMAIL);
byte[] encodedEmail;
......@@ -227,6 +228,9 @@ public class RegistrationValidation extends RegistrationUserCreation {
SimpleDateFormat formatDate = new SimpleDateFormat("yyDHmsS");
user.setSingleAttribute("mattermostid", formatDate.format(today) + emailByteTotal);
// Added attribute for TCODE mattermost
user.setSingleAttribute("mm_id", formData.getFirst(Validation.FIELD_USERNAME));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment