Login registration
This commit is contained in:
8
src/Yavsc/Views/Account/Register.cshtml
Normal file
8
src/Yavsc/Views/Account/Register.cshtml
Normal file
@ -0,0 +1,8 @@
|
||||
@model RegisterModel
|
||||
|
||||
<partial name="_ValidationSummary" />
|
||||
<form method="post">
|
||||
@Html.EditorForModel()
|
||||
<button class="btn btn-primary" name="button"
|
||||
value="Register">Register</button>
|
||||
</form>
|
@ -69,22 +69,7 @@ $('span.field-validation-valid[data-valmsg-for="Content"]').html(
|
||||
<h1 class="blogtitle" ismarkdown>@Model.Title</h1>
|
||||
<img class="blogphoto" alt="" src="@Model.Photo" >
|
||||
<div class="blogpost">
|
||||
@Html.AsciiDocFor(model => model.Content)
|
||||
<p class="blog" asp-for="Content"></p>
|
||||
<hr/>
|
||||
|
||||
<div class="meta">
|
||||
@Html.DisplayFor(model => model.Author)
|
||||
|
||||
@Html.DisplayNameFor(model => model.DateModified) :
|
||||
|
||||
@Html.DisplayFor(model => model.DateModified)
|
||||
|
||||
@Html.DisplayNameFor(model => model.DateCreated) :
|
||||
|
||||
@Html.DisplayFor(model => model.DateCreated)
|
||||
|
||||
@await Component.InvokeAsync("Tagger",Model)
|
||||
@Html.DisplayForModel()
|
||||
</div>
|
||||
|
||||
<div id="comments">
|
||||
|
@ -1,14 +1,10 @@
|
||||
@using System.Diagnostics
|
||||
@{
|
||||
ViewData["Title"] = SR["About"] + " " + SiteSettings.Value.Title;
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<h1>@SiteSettings.Value.Title - À Propos</h1>
|
||||
|
||||
**Version de Development**
|
||||
|
||||
<asciidoc>
|
||||
= À propos de Yavsc
|
||||
|
||||
== L'objectif
|
||||
|
||||
Cette application est construite pour mettre en relation des artistes
|
||||
@ -91,38 +87,4 @@ et programme la suppression complète de ces dites informations dans les quinze
|
||||
à compter de la demande, sauf demande contradictoire.
|
||||
L'opération est annulable, jusqu'à deux semaines après sa programmation.
|
||||
</asciidoc>
|
||||
<p>
|
||||
@Model
|
||||
</p>
|
||||
|
||||
@{
|
||||
var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
|
||||
}
|
||||
|
||||
<div class="welcome-page">
|
||||
<h1>
|
||||
<img src="~/icon.jpg">
|
||||
Welcome to IdentityServer4
|
||||
<small class="text-muted">(version @version)</small>
|
||||
</h1>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
IdentityServer publishes a
|
||||
<a href="~/.well-known/openid-configuration">discovery document</a>
|
||||
where you can find metadata and links to all the endpoints, key material, etc.
|
||||
</li>
|
||||
<li>
|
||||
Click <a href="~/diagnostics">here</a> to see the claims for your current session.
|
||||
</li>
|
||||
<li>
|
||||
Click <a href="~/grants">here</a> to manage your stored grants.
|
||||
</li>
|
||||
<li>
|
||||
Here are links to the
|
||||
<a href="https://github.com/identityserver/IdentityServer4">source code repository</a>,
|
||||
and <a href="https://github.com/IdentityServer/IdentityServer4/tree/main/samples">ready to use samples</a>.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>@Model</p>
|
||||
|
@ -1,16 +1,13 @@
|
||||
@{
|
||||
ViewData["Title"] = @SR["About"]+" "+@SiteSettings.Value.Title;
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
<h1>@SiteSettings.Value.Title - objetivo</h1>
|
||||
<environment names="freefield,Development">
|
||||
|
||||
<asciidoc>
|
||||
## O objetivo
|
||||
= O objetivo
|
||||
|
||||
Esta aplicação é construída para conectar artistas
|
||||
do campo musical com seu público.
|
||||
|
||||
## Operation
|
||||
== Operation
|
||||
|
||||
Os usuários do site são artista, cliente ou administrador. Todos eles têm direito ao seu blog.
|
||||
Para artistas, é uma maneira de promover seus negócios.
|
||||
@ -52,7 +49,7 @@ Depois que o serviço associado tiver sido executado, os pagamentos relativos se
|
||||
Para um contrato executado e não honrado pelo cliente, o processo de processo de recuperação é contratado, caso contrário, o contrato é arquivado,
|
||||
Os certificados de pagamento estão disponíveis para o artista e a fatura é marcada como paga e depois repassada ao cliente.
|
||||
|
||||
### Para o artista
|
||||
=== Para o artista
|
||||
|
||||
O artista escolhe vários parâmetros que farão o seu perfil:
|
||||
|
||||
@ -65,7 +62,7 @@ O artista escolhe vários parâmetros que farão o seu perfil:
|
||||
* Parâmetros adicionais dependendo do tipo de atividade, por exemplo, para
|
||||
conjuntos, seu tamanho, se houver, seu repertório ou indicações do estilo de sua música)
|
||||
|
||||
### Para o cliente
|
||||
=== Para o cliente
|
||||
|
||||
Ele escolhe um lugar e uma data para declarar um evento futuro
|
||||
(Ele pode programar o quanto quiser).
|
||||
@ -75,7 +72,7 @@ com base em um de seus projetos de eventos, a negociação de um contrato de ser
|
||||
|
||||
Ele tem acesso ao conhecimento de dias conhecidos como artistas livres pelo sistema.
|
||||
|
||||
## Confidencialidade
|
||||
== Confidencialidade
|
||||
|
||||
Em nenhum momento, nenhum endereço de correspondência, nenhum endereço de e-mail e nenhum número de telefone
|
||||
não são transmitidos para clientes ou artistas. Apenas o sistema tem acesso a essas informações.
|
||||
@ -158,6 +155,4 @@ A "pré-produção" exibe os seguintes sites:
|
||||
</asciidoc>
|
||||
</environment>
|
||||
|
||||
<p>
|
||||
@Model
|
||||
</p>
|
||||
<p>@Model</p>
|
||||
|
32
src/Yavsc/Views/Home/AboutIdentityServer.cshtml
Normal file
32
src/Yavsc/Views/Home/AboutIdentityServer.cshtml
Normal file
@ -0,0 +1,32 @@
|
||||
@using System.Diagnostics
|
||||
|
||||
@{
|
||||
var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
|
||||
}
|
||||
|
||||
<div class="welcome-page">
|
||||
<h1>
|
||||
<img src="~/icon.jpg">
|
||||
Welcome to IdentityServer4
|
||||
<small class="text-muted">(version @version)</small>
|
||||
</h1>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
IdentityServer publishes a
|
||||
<a href="~/.well-known/openid-configuration">discovery document</a>
|
||||
where you can find metadata and links to all the endpoints, key material, etc.
|
||||
</li>
|
||||
<li>
|
||||
Click <a href="~/diagnostics">here</a> to see the claims for your current session.
|
||||
</li>
|
||||
<li>
|
||||
Click <a href="~/grants">here</a> to manage your stored grants.
|
||||
</li>
|
||||
<li>
|
||||
Here are links to the
|
||||
<a href="https://github.com/identityserver/IdentityServer4">source code repository</a>,
|
||||
and <a href="https://github.com/IdentityServer/IdentityServer4/tree/main/samples">ready to use samples</a>.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
@ -14,18 +14,19 @@
|
||||
|
||||
<dd>
|
||||
@Model.UserName
|
||||
<a asp-action="SetUserName">[modifier]</a>
|
||||
</dd>
|
||||
|
||||
<dt>EMail:</dt>
|
||||
<dt>E-mail</dt>
|
||||
|
||||
<dd>
|
||||
@Model.EMail
|
||||
|
||||
@if (Model.EmailConfirmed) {
|
||||
<text>(Adresse E-mail confirmée"])</text>
|
||||
<text>(Adresse E-mail confirmée)</text>
|
||||
} else {
|
||||
<text>
|
||||
<i> (Adresse non confirmée."])</i>
|
||||
<i> (Adresse non confirmée.)</i>
|
||||
<form asp-action="SendConfirationEmail" asp-controller="Account" enctype="multipart/form-data">
|
||||
<input type="submit" value="Confirmer cette adresse"]"/>
|
||||
</form>
|
||||
@ -35,7 +36,7 @@
|
||||
|
||||
<dd>
|
||||
<dl>
|
||||
<dt>AllowMonthlyEmail:</dt>
|
||||
<dt>Allow Monthly Email</dt>
|
||||
<dd>
|
||||
<a asp-action="ProfileEMailUsage"> @Html.DisplayFor(m=>m.AllowMonthlyEmail) [modifier]
|
||||
</a>
|
||||
@ -46,7 +47,8 @@
|
||||
|
||||
<dt>FullName:</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(m=>m.FullName) <a asp-action="SetFullName">[modifier]</a>
|
||||
@Html.DisplayFor(m=>m.FullName)
|
||||
<a asp-action="SetFullName">[modifier]</a>
|
||||
</dd>
|
||||
|
||||
@if (Model.Roles.Count()>0) {
|
||||
|
@ -1,19 +1,19 @@
|
||||
@model ChangeUserNameViewModel
|
||||
@model SetUserNameViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Changer de nom d'utilisateur";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
<form asp-controller="Manage" asp-action="ChangeUserName" method="post" class="form-horizontal" role="form">
|
||||
<form asp-controller="Manage" asp-action="SetUserName" method="post" class="form-horizontal" role="form">
|
||||
<h4>Change user name form</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="NewUserName" class="col-md-2 control-label"></label>
|
||||
<label asp-for="UserName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="NewUserName" class="form-control" />
|
||||
<span asp-validation-for="NewUserName" class="text-danger"></span>
|
||||
<input asp-for="UserName" class="form-control" />
|
||||
<span asp-validation-for="UserName" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -34,7 +34,7 @@
|
||||
<td>
|
||||
<asciidoc summary="256">@item.Content</asciidoc>
|
||||
@if (trunked) { <a asp-action="Details" asp-route-id="@item.Id" class="bloglink">...</a> }
|
||||
<span style="font-size:x-small;">(@item.Author.UserName </span>,
|
||||
<span style="font-size:x-small;">(@Html.DisplayFor(m => item.Author)</span>,
|
||||
<span style="font-size:xx-small;">
|
||||
posté le @item.DateCreated.ToString("dddd d MMM yyyy à H:mm")
|
||||
@if ((item.DateModified - item.DateCreated).Minutes > 0){
|
||||
|
@ -1,12 +1,14 @@
|
||||
@model ApplicationUser
|
||||
@{
|
||||
var avuri = "/Avatars/"+Model.UserName+".s.png";
|
||||
var userPosted = Model.Posts!=null && Model.Posts.Count()>1;
|
||||
}
|
||||
<div class="userinfo">
|
||||
<h3>
|
||||
<img src="@avuri" asp-append-version="true" class="smalltofhol" />
|
||||
</h3>
|
||||
@if (Model.Posts!=null && Model.Posts.Count()>1) { <a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName" class="btn btn-primary">index de ses articles</a>
|
||||
@if (userPosted) { <a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName" class="btn btn-primary">
|
||||
<img src="@avuri" asp-append-version="true" class="smalltofhol" alt="" title="@Model.UserName"/>
|
||||
</a>
|
||||
}else {
|
||||
Html.LabelFor(m=>m.UserName);
|
||||
}
|
||||
</div>
|
||||
|
@ -35,7 +35,7 @@
|
||||
@addTagHelper *, Yavsc
|
||||
|
||||
@inject IAuthorizationService AuthorizationService
|
||||
@inject Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer<Yavsc.Startup> SR
|
||||
@inject Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer<Yavsc.YavscLocalization> SR
|
||||
@inject Microsoft.Extensions.Options.IOptions<SiteSettings> SiteSettings
|
||||
@inject SignInManager<ApplicationUser> SignInManager
|
||||
@inject UserManager<ApplicationUser> UserManager
|
||||
|
Reference in New Issue
Block a user