mirror of
https://github.com/Stefan-5422/-T5-Elektrifikatsiya.git
synced 2026-09-04 08:55:59 +02:00
yes
This commit is contained in:
@@ -82,15 +82,15 @@
|
||||
<ModalBody>
|
||||
<Field>
|
||||
<FieldLabel>User Name</FieldLabel>
|
||||
<TextEdit @ref="modalAddUserName" Placeholder="Enter user name..." />
|
||||
<TextEdit @ref="modalAddUserName" @bind-Text="@UserCopy.Name" Placeholder="Enter user name..." />
|
||||
</Field>
|
||||
<Field>
|
||||
<FieldLabel>User E-Mail</FieldLabel>
|
||||
<TextEdit @ref="modalAddUserEmail" Placeholder="Enter user E-mail..." />
|
||||
<TextEdit @ref="modalAddUserEmail" @bind-Text="@UserCopy.Name" Placeholder="Enter user E-mail..." />
|
||||
</Field>
|
||||
<Field>
|
||||
<FieldLabel>User Password</FieldLabel>
|
||||
<TextEdit @ref="modalAddUserPW" Placeholder="Enter user password..." />
|
||||
<TextEdit @ref="modalAddUserPW" @bind-Text="@UserCopy.Name" Placeholder="Enter user password..." />
|
||||
</Field>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
@@ -248,7 +248,7 @@
|
||||
|
||||
private async Task RegisterUser()
|
||||
{
|
||||
Result<Device> result = await AuthenthicationService.RegisterUserAsync(modalAddUserName.Text.ToString(), modalAddUserEmail.Text.ToString(), modalAddUserPW.Text.ToString(), Role.User);
|
||||
Result<Device> result = await AuthenthicationService.RegisterUserAsync(modalAddUserName.Text.ToString(), modalAddUserPW.Text.ToString(), modalAddUserEmail.Text.ToString(), Role.User);
|
||||
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
|
||||
@@ -40,6 +40,11 @@ public class EnergyPriceService : IEnergyPriceService
|
||||
{
|
||||
plugnames += $"shellyplug-s-{device.MacAddress}/relay/0|";
|
||||
}
|
||||
|
||||
if(plugnames.Length <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
plugnames = plugnames[0..^1];
|
||||
|
||||
if (startime < endTime)
|
||||
|
||||
Reference in New Issue
Block a user