Folder and file management service
This commit is contained in:
@ -48,6 +48,14 @@
|
||||
<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)
|
||||
{
|
||||
@ -83,6 +91,7 @@
|
||||
string confirm = "";
|
||||
string email = "";
|
||||
string displayname = "";
|
||||
FileManager filemanager;
|
||||
List<Profile> profiles;
|
||||
Dictionary<string, string> settings;
|
||||
string category = "";
|
||||
@ -115,6 +124,12 @@
|
||||
user.Password = password;
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user