Avatar route changed to '/avatars'
This commit is contained in:
parent
5c292194f3
commit
86130d2ee5
4 changed files with 12 additions and 5 deletions
|
|
@ -26,8 +26,8 @@ namespace Yavsc
|
||||||
FrontOfficeGroupName = "FrontOffice",
|
FrontOfficeGroupName = "FrontOffice",
|
||||||
GCMNotificationUrl = "https://gcm-http.googleapis.com/gcm/send",
|
GCMNotificationUrl = "https://gcm-http.googleapis.com/gcm/send",
|
||||||
KeyProtectorPurpose = "OAuth.AspNet.AuthServer",
|
KeyProtectorPurpose = "OAuth.AspNet.AuthServer",
|
||||||
UserFilesPath = "/UserFiles",
|
UserFilesPath = "/files",
|
||||||
AvatarsPath = "/Avatars",
|
AvatarsPath = "/avatars",
|
||||||
DefaultAvatar = "/images/Users/icon_user.png",
|
DefaultAvatar = "/images/Users/icon_user.png",
|
||||||
AnonAvatar = "/images/Users/icon_anon_user.png";
|
AnonAvatar = "/images/Users/icon_anon_user.png";
|
||||||
public static char[] ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=_~. ".ToCharArray();
|
public static char[] ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=_~. ".ToCharArray();
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@foreach (var user in Model.Users) {
|
@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
|
@user.UserName
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
Dropzone.options.postavatar= {
|
Dropzone.options.postavatar= {
|
||||||
maxFilesize: 2, // MB
|
maxFilesize: 2, // MB (an avatar)
|
||||||
autoProcessQueue: true,
|
autoProcessQueue: true,
|
||||||
accept: function(file, done) {
|
accept: function(file, done) {
|
||||||
if (file.name == "justinbieber.jpg") {
|
if (file.name == "justinbieber.jpg") {
|
||||||
|
|
@ -21,7 +21,7 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
</script>
|
</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">
|
<form id="postavatar" class="dropzone" method="post" enctype="multipart/form-data">
|
||||||
<div class="fallback">
|
<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"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue