Avatar route changed to '/avatars'
This commit is contained in:
@ -26,8 +26,8 @@ namespace Yavsc
|
||||
FrontOfficeGroupName = "FrontOffice",
|
||||
GCMNotificationUrl = "https://gcm-http.googleapis.com/gcm/send",
|
||||
KeyProtectorPurpose = "OAuth.AspNet.AuthServer",
|
||||
UserFilesPath = "/UserFiles",
|
||||
AvatarsPath = "/Avatars",
|
||||
UserFilesPath = "/files",
|
||||
AvatarsPath = "/avatars",
|
||||
DefaultAvatar = "/images/Users/icon_user.png",
|
||||
AnonAvatar = "/images/Users/icon_anon_user.png";
|
||||
public static char[] ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=_~. ".ToCharArray();
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
<ul>
|
||||
@foreach (var user in Model.Users) {
|
||||
<li> <img src="~/Avatars/@(user.UserName).xs.png" alt="avatar"/>
|
||||
<li> <img src="~/avatars/@(user.UserName).xs.png" alt="avatar"/>
|
||||
@user.UserName
|
||||
</li>
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
Dropzone.options.postavatar= {
|
||||
maxFilesize: 2, // MB
|
||||
maxFilesize: 2, // MB (an avatar)
|
||||
autoProcessQueue: true,
|
||||
accept: function(file, done) {
|
||||
if (file.name == "justinbieber.jpg") {
|
||||
@ -21,7 +21,7 @@ $(document).ready(function() {
|
||||
});
|
||||
</script>
|
||||
}
|
||||
<img src="~/Avatars/@(User.Identity.Name).png">
|
||||
<img src="~/avatars/@(User.Identity.Name).png">
|
||||
|
||||
<form id="postavatar" class="dropzone" method="post" enctype="multipart/form-data">
|
||||
<div class="fallback">
|
||||
|
7
test/global.json
Normal file
7
test/global.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "2.0.4",
|
||||
"runtime": "mono",
|
||||
"architecture": "x64"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user