commit
62f4e1b6ef
@ -52,7 +52,7 @@
|
||||
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Admin; } }
|
||||
|
||||
List<Folder> Folders;
|
||||
int folderid;
|
||||
int folderid = -1;
|
||||
List<File> Files;
|
||||
Uri uri;
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
try
|
||||
{
|
||||
Folders = await FolderService.GetFoldersAsync(PageState.Site.SiteId);
|
||||
if (Folders.Count > 0)
|
||||
if (folderid == -1 && Folders.Count > 0)
|
||||
{
|
||||
folderid = Folders[0].FolderId;
|
||||
await GetFiles();
|
||||
|
@ -48,14 +48,6 @@
|
||||
<input class="form-control" @bind="@displayname" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="Name" class="control-label">Photo: </label>
|
||||
</td>
|
||||
<td>
|
||||
<FileManager @ref="filemanager" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@foreach (Profile profile in profiles)
|
||||
{
|
||||
@ -91,7 +83,6 @@
|
||||
string confirm = "";
|
||||
string email = "";
|
||||
string displayname = "";
|
||||
FileManager filemanager;
|
||||
List<Profile> profiles;
|
||||
Dictionary<string, string> settings;
|
||||
string category = "";
|
||||
@ -125,11 +116,6 @@
|
||||
user.Email = email;
|
||||
user.DisplayName = string.IsNullOrWhiteSpace(displayname) ? username : displayname;
|
||||
user.PhotoFileId = null;
|
||||
int photofileid = filemanager.GetFileId();
|
||||
if (photofileid != -1)
|
||||
{
|
||||
user.PhotoFileId = photofileid;
|
||||
}
|
||||
|
||||
user = await UserService.AddUserAsync(user);
|
||||
|
||||
|
BIN
screenshot6.png
Normal file
BIN
screenshot6.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
Loading…
x
Reference in New Issue
Block a user