Compare commits

..

No commits in common. "33aae6564740ae8da04f21f09f56de2c8393ad61" and "055cf79354285c733d69c5bacc32acd9c94b270f" have entirely different histories.

7 changed files with 11 additions and 25 deletions

View File

@ -5,22 +5,11 @@ Changelog
(unreleased) (unreleased)
------------ ------------
Fix
~~~
- Resolve linting errors, refs NOISSUE. [Simon Diesenreiter]
0.2.2 (2025-05-18)
------------------
Fix Fix
~~~ ~~~
- Also send pick suggestion to the group, refs NOISSUE. [Simon - Also send pick suggestion to the group, refs NOISSUE. [Simon
Diesenreiter] Diesenreiter]
Other
~~~~~
0.2.1 (2025-05-17) 0.2.1 (2025-05-17)
------------------ ------------------

View File

@ -1,4 +1,4 @@
public interface IAuthenticationService public interface IAuthenticationService
{ {
bool Authenticate(string userName, string password); bool Authenticate(string userName, string password);
} }

View File

@ -34,7 +34,7 @@ public class PhoneClaimCodeProviderService
SignalIntegration.Instance.SendMessageToUserAsync("Your phone number validation code is: " + generatedCode, phoneNumber); SignalIntegration.Instance.SendMessageToUserAsync("Your phone number validation code is: " + generatedCode, phoneNumber);
} }
public string ValidateClaimCodeForUser(string code, string username) public string ValidateClaimCodeForUser(string code, string username)
{ {
var result = false; var result = false;
@ -50,7 +50,7 @@ public class PhoneClaimCodeProviderService
return string.Empty; return string.Empty;
} }
public bool IsCodeGeneratedForUser(string username) public bool IsCodeGeneratedForUser(string username)
{ {
return _phoneClaimCodes.ContainsKey(username); return _phoneClaimCodes.ContainsKey(username);

View File

@ -19,8 +19,7 @@ public class AppConfiguration
this.AverageDaysBetweenRequests = int.Parse(Environment.GetEnvironmentVariable("AVERAGE_DAYS_BETWEEN_REQUESTS") ?? "2"); this.AverageDaysBetweenRequests = int.Parse(Environment.GetEnvironmentVariable("AVERAGE_DAYS_BETWEEN_REQUESTS") ?? "2");
var managersGroupName = Environment.GetEnvironmentVariable("LDAP_ADMINGROUP") ?? "admins"; var managersGroupName = Environment.GetEnvironmentVariable("LDAP_ADMINGROUP") ?? "admins";
var userGroupName = Environment.GetEnvironmentVariable("LDAP_USERGROUP") ?? "everybody"; var userGroupName = Environment.GetEnvironmentVariable("LDAP_USERGROUP") ?? "everybody";
this.LDAPConfig = new ConfigurationAD() this.LDAPConfig = new ConfigurationAD() {
{
Username = Environment.GetEnvironmentVariable("LDAP_BIND") ?? "cn=admin,dc=disi,dc=dev", Username = Environment.GetEnvironmentVariable("LDAP_BIND") ?? "cn=admin,dc=disi,dc=dev",
Password = Environment.GetEnvironmentVariable("LDAP_PASS") ?? "adminPass2022!", Password = Environment.GetEnvironmentVariable("LDAP_PASS") ?? "adminPass2022!",
Port = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("LDAP_BIND")) ? int.Parse(Environment.GetEnvironmentVariable("LDAP_BIND")) : 389, Port = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("LDAP_BIND")) ? int.Parse(Environment.GetEnvironmentVariable("LDAP_BIND")) : 389,
@ -92,8 +91,7 @@ public class AppConfiguration
get; private set; get; private set;
} }
public ConfigurationAD LDAPConfig public ConfigurationAD LDAPConfig {
{
get; private set; get; private set;
} }
} }

View File

@ -107,10 +107,9 @@ public class LdapIntegration
var userList = new List<LdapUser>(); var userList = new List<LdapUser>();
foreach (SearchResultEntry result in response.Entries) foreach(SearchResultEntry result in response.Entries)
{ {
userList.Add(new LdapUser() userList.Add(new LdapUser() {
{
UserId = result.Attributes["uid"][0].ToString(), UserId = result.Attributes["uid"][0].ToString(),
FirstName = result.Attributes["givenName"][0].ToString(), FirstName = result.Attributes["givenName"][0].ToString(),
LastName = result.Attributes["sn"][0].ToString(), LastName = result.Attributes["sn"][0].ToString(),

View File

@ -124,7 +124,7 @@ ldapAssociationTimer.OnOccurence += async (s, ea) =>
foreach (var user in nonAssociatedUsers) foreach (var user in nonAssociatedUsers)
{ {
user.AssociationInProgress = true; user.AssociationInProgress = true;
startUserAssociationProcess(user); startUserAssociationProcess(user);
user.IsIntroduced = true; user.IsIntroduced = true;
needsSaving = true; needsSaving = true;

View File

@ -1 +1 @@
0.2.3 0.2.2