Local Auth (start of dezentralization)
Prep for WebUI Upgrade to SSL optional
This commit is contained in:
parent
258404b7fa
commit
5f40158b00
11 changed files with 456 additions and 73 deletions
|
|
@ -10,6 +10,9 @@ use uuid::Uuid;
|
|||
pub enum DataTypes {
|
||||
error_type,
|
||||
accepted_ids,
|
||||
uuid,
|
||||
settings,
|
||||
settings_name,
|
||||
chat_partner_id,
|
||||
iota_id,
|
||||
user_id,
|
||||
|
|
@ -84,6 +87,9 @@ impl DataTypes {
|
|||
match normalized.as_str() {
|
||||
"errortype" => DataTypes::error_type,
|
||||
"chatpartnerid" => DataTypes::chat_partner_id,
|
||||
"uuid" => DataTypes::uuid,
|
||||
"settings" => DataTypes::settings,
|
||||
"settingsname" => DataTypes::settings_name,
|
||||
"iotaid" => DataTypes::iota_id,
|
||||
"userid" => DataTypes::user_id,
|
||||
"userids" => DataTypes::user_ids,
|
||||
|
|
@ -163,6 +169,9 @@ pub enum CommunicationType {
|
|||
error_invalid_secret,
|
||||
error_invalid_private_key,
|
||||
success,
|
||||
settings_save,
|
||||
settings_load,
|
||||
settings_list,
|
||||
message,
|
||||
message_send,
|
||||
message_live,
|
||||
|
|
@ -191,6 +200,7 @@ pub enum CommunicationType {
|
|||
iota_closed,
|
||||
client_changed,
|
||||
client_connected,
|
||||
client_disconnected,
|
||||
client_closed,
|
||||
public_key,
|
||||
private_key,
|
||||
|
|
@ -212,6 +222,9 @@ impl CommunicationType {
|
|||
|
||||
match normalized.as_str() {
|
||||
"error" => CommunicationType::error,
|
||||
"settingssave" => CommunicationType::settings_save,
|
||||
"settingsload" => CommunicationType::settings_load,
|
||||
"settingslist" => CommunicationType::settings_list,
|
||||
"success" => CommunicationType::success,
|
||||
"message" => CommunicationType::message,
|
||||
"messagelive" => CommunicationType::message_live,
|
||||
|
|
@ -241,6 +254,7 @@ impl CommunicationType {
|
|||
"iotaclosed" => CommunicationType::iota_closed,
|
||||
"clientchanged" => CommunicationType::client_changed,
|
||||
"clientconnected" => CommunicationType::client_connected,
|
||||
"clientdisconnected" => CommunicationType::client_disconnected,
|
||||
"clientclosed" => CommunicationType::client_closed,
|
||||
"publickey" => CommunicationType::public_key,
|
||||
"privatekey" => CommunicationType::private_key,
|
||||
|
|
|
|||
Loading…
Reference in a new issue