From 2672b95a6b2a7e57fef0d7cc235707f02e4a7094 Mon Sep 17 00:00:00 2001 From: mumana Date: Tue, 12 Jun 2018 21:27:34 +0000 Subject: [PATCH] git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C36 --- .../AYA.SlnSynor/AYA.SlnSinort.csproj | 22 --- .../AYA.SlnSynor/Sinort-Scripts/EmisorPN.js | 128 ++++-------------- .../Views/Account/ConfirmEmail.cshtml | 10 -- .../Account/ExternalLoginConfirmation.cshtml | 36 ----- .../Views/Account/ExternalLoginFailure.cshtml | 8 -- .../Views/Account/ForgotPassword.cshtml | 29 ---- .../Account/ForgotPasswordConfirmation.cshtml | 13 -- .../AYA.SlnSynor/Views/Account/Login.cshtml | 63 --------- .../Views/Account/Register.cshtml | 41 ------ .../Views/Account/ResetPassword.cshtml | 42 ------ .../Account/ResetPasswordConfirmation.cshtml | 12 -- .../Views/Account/SendCode.cshtml | 24 ---- .../Views/Account/VerifyCode.cshtml | 38 ------ .../Account/_ExternalLoginsListPartial.cshtml | 28 ---- .../Views/Manage/AddPhoneNumber.cshtml | 29 ---- .../Views/Manage/ChangePassword.cshtml | 40 ------ .../AYA.SlnSynor/Views/Manage/Index.cshtml | 84 ------------ .../Views/Manage/ManageLogins.cshtml | 70 ---------- .../Views/Manage/SetPassword.cshtml | 39 ------ .../Views/Manage/VerifyPhoneNumber.cshtml | 31 ----- 20 files changed, 25 insertions(+), 762 deletions(-) delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/ConfirmEmail.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginFailure.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPasswordConfirmation.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPasswordConfirmation.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Manage/AddPhoneNumber.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ChangePassword.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Manage/Index.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ManageLogins.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Manage/SetPassword.cshtml delete mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Manage/VerifyPhoneNumber.cshtml diff --git a/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj b/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj index 943fa7dee..2ac88c93d 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj +++ b/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj @@ -7688,24 +7688,6 @@ - - - - - - - - - - - - - - - - - - @@ -7725,10 +7707,6 @@ - - - - diff --git a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EmisorPN.js b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EmisorPN.js index afcd9f4b1..2c1840fec 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EmisorPN.js +++ b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EmisorPN.js @@ -1,21 +1,14 @@ -//$("#formCatalogo").EnableValidationToolTip(); -var DataCatalogo; +var DataCatalogo; var id_column = 1; var Item = {}; -//#region READY - jQuery(document).ready(function () { - getDataModel(); - }); -//#endregion - this.getDataModel = function () { $('#txtDescripcion').attr('size', 50); @@ -24,8 +17,8 @@ this.getDataModel = function () { $('#btnInsertar').show(); - $('#btnLimpiar').click(function () { - limpiar(); + $('#btnLimpiarControles').click(function () { + LimpiarControles(); $('#btnGuardar').hide(); $('#btnInsertar').show(); @@ -41,8 +34,7 @@ this.getDataModel = function () { $('#TableItems').TableInit(0, false, true, true, false, null, null); - obtenerItems(); - + ObtenerEmisores(); } @@ -86,7 +78,7 @@ this.CargarGridEmisores = function (data) { ENDREQUEST(); } -this.obtenerItems = function () { +this.ObtenerEmisores = function () { var uri = CatalogosWCF + '/api/ObtenerEmisor'; AjaxPostData(uri, null, false, false, CargarGridEmisores, null, null); @@ -96,7 +88,7 @@ this.obtenerItems = function () { this.EditarItem = function (id) { TableItems = $('#TableItems').DataTable(); - limpiar(); + LimpiarControles(); var indexes = getRowIndex(TableItems, id_column, id); if (indexes != null) { @@ -104,19 +96,14 @@ this.EditarItem = function (id) { $('#hiddenId').val(id) $('#txtDescripcion').val(TableItems.cell(indexes, 2).data()); - - $("#formCatalogo").validateElement("#txtDescripcion"); - $('#lbTituloAccion').empty(); $('#lbTituloAccion').append('Editar Valor de Campo ID: ' + id); $('#btnInsertar').hide(); $('#btnGuardar').show(); } - - } this.toggleEnabledItem = function (id, value) { @@ -157,13 +144,13 @@ this.toggleEnabledItem = function (id, value) { if (data.CodigoRespuesta == "EXITOSO") { toastr.info('Información actualizada con éxito', 'Completado'); - limpiar(); + LimpiarControles(); $('#btnGuardar').hide(); $('#btnInsertar').show(); TableItems.clear().draw(); - obtenerItems(); + ObtenerEmisores(); ENDREQUEST(); } else { @@ -194,58 +181,16 @@ this.ActualizarItem = function () { if (!confirm("Se guardarán los cambios.\n ¿Desea continuar?")) { return; } - STARTREQUEST(); - TableItems = $('#TableItems').DataTable(); - Emisor = { + TableItems = $('#TableItems').DataTable(); + EmisorPN = { IdEmisor: $('#hiddenId').val(), Descripcion: $('#txtDescripcion').val(), Estado : 1, } - var uri = CatalogosWCF + '/api/InsertarActualizarEmisor' - var DTO = JSON.stringify(Emisor); - - $.ajax({ - type: 'POST', - url: uri, - cache: false, - data: DTO, - contentType: 'application/json; charset=utf-8', - dataType: 'json', - success: function (data) { - - if (data.CodigoRespuesta == "EXITOSO") { - toastr.info('Información guardada con éxito', 'Completado'); - limpiar(); - - $('#btnGuardar').hide(); - $('#btnInsertar').show(); - - $('#lbTituloAccion').empty(); - $('#lbTituloAccion').append('Ingresar Nuevo Emisor PN'); - - TableItems.clear().draw(); - obtenerItems(); - ENDREQUEST(); - - } - else { - toastr.error("Ha ocurrido un error."); - ENDREQUEST(); - - } - - } - }).fail(function (jqxhr, textStatus, error) { - - toastr.error("Ha ocurrido un error inesperado. Vuela a intentarlo."); - ENDREQUEST(); - - }).then(function (value) { - - ENDREQUEST(); - }); + var uri = CatalogosWCF + '/api/InsertarActualizarEmisor'; + AjaxPostData(uri, EmisorPN, true, true, CompletarAccion, null, null); } this.InsertarItem = function () { @@ -259,51 +204,28 @@ this.InsertarItem = function () { if (!confirm("Va a ingresar un nuevo Emisor PN.\n ¿Desea continuar?")) { return; } - STARTREQUEST(); - TableItems = $('#TableItems').DataTable(); + TableItems = $('#TableItems').DataTable(); EmisorPN = { Descripcion: $("#txtDescripcion").val(), } var uri = CatalogosWCF + '/api/InsertarActualizarEmisor'; - var DTO = JSON.stringify(EmisorPN); + AjaxPostData(uri, EmisorPN, true, true, CompletarAccion, null, null); - $.ajax({ - type: 'POST', - url: uri, - cache: false, - data: DTO, - contentType: 'application/json; charset=utf-8', - dataType: 'json', - success: function (data) { - - if (data.CodigoRespuesta == "EXITOSO") { - toastr.info('Información guardada con exito', 'Completado'); - limpiar(); - $('#btnGuardar').hide(); - $('#btnInsertar').show(); - - TableItems.clear().draw(); - obtenerItems(); - ENDREQUEST(); - } - else { - toastr.error("Ha ocurrido un error."); - ENDREQUEST(); - } - } - }).fail(function (jqxhr, textStatus, error) { - - toastr.error("Ha ocurrido un error inesperado. Vuela a intentarlo."); - ENDREQUEST(); - - }).then(function (value) { - ENDREQUEST(); - }); } -this.limpiar = function () { +this.CompletarAccion = function () { + $('#btnGuardar').hide(); + $('#btnInsertar').show(); + + TableItems.clear().draw(); + ObtenerEmisores(); + LimpiarControles(); + ENDREQUEST(); +} + +this.LimpiarControles = function () { $('#txtDescripcion').val(''); $("#formCatalogo").validateElement("#txtDescripcion"); diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ConfirmEmail.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ConfirmEmail.cshtml deleted file mode 100644 index 258bdddd7..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ConfirmEmail.cshtml +++ /dev/null @@ -1,10 +0,0 @@ -@{ - ViewBag.Title = "Confirmar correo electrónico"; -} - -

@ViewBag.Title.

-
-

- Gracias por confirmar su correo electrónico. @Html.ActionLink("Haga clic aquí para iniciar sesión", "Iniciar sesión", "Cuenta", routeValues: null, htmlAttributes: new { id = "loginLink" }) -

-
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml deleted file mode 100644 index dd8c0e497..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml +++ /dev/null @@ -1,36 +0,0 @@ -@model AYA.SlnSinort.Models.ExternalLoginConfirmationViewModel -@{ - ViewBag.Title = "Registrarse"; -} -

@ViewBag.Title.

-

Asocie su cuenta @ViewBag.LoginProvider.

- -@using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - -

Formulario de asociación

-
- @Html.ValidationSummary(true, "", new { @class = "text-danger" }) -

- Se autenticó correctamente con @ViewBag.LoginProvider. - Introduzca un nombre de usuario para este sitio y haga clic en el botón Registrar para finalizar - el inicio de sesión. -

-
- @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) - @Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" }) -
-
-
-
- -
-
-} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginFailure.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginFailure.cshtml deleted file mode 100644 index f376feaf3..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginFailure.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@{ - ViewBag.Title = "Error de inicio de sesión"; -} - -
-

@ViewBag.Title.

-

El inicio de sesión con el servicio no se ha llevado a cabo correctamente.

-
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml deleted file mode 100644 index aaec426d1..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml +++ /dev/null @@ -1,29 +0,0 @@ -@model AYA.SlnSinort.Models.ForgotPasswordViewModel -@{ - ViewBag.Title = "¿Olvidó la contraseña?"; -} - -

@ViewBag.Title.

- -@using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() -

Especifique su correo electrónico.

-
- @Html.ValidationSummary("", new { @class = "text-danger" }) -
- @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) -
-
-
-
- -
-
-} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPasswordConfirmation.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPasswordConfirmation.cshtml deleted file mode 100644 index 063fffdae..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPasswordConfirmation.cshtml +++ /dev/null @@ -1,13 +0,0 @@ -@{ - ViewBag.Title = "Confirmación de contraseña olvidada"; -} - -
-

@ViewBag.Title.

-
-
-

- Compruebe el correo electrónico para restablecer la contraseña. -

-
- diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml deleted file mode 100644 index 907341778..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml +++ /dev/null @@ -1,63 +0,0 @@ -@using AYA.SlnSinort.Models -@model LoginViewModel -@{ - ViewBag.Title = "Iniciar sesión"; -} - -

@ViewBag.Title.

-
-
-
- @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) - { - @Html.AntiForgeryToken() -

Use una cuenta local para iniciar sesión.

-
- @Html.ValidationSummary(true, "", new { @class = "text-danger" }) -
- @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) - @Html.ValidationMessageFor(m => m.Email, "", new { @class = "text-danger" }) -
-
-
- @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.Password, new { @class = "form-control" }) - @Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" }) -
-
-
-
-
- @Html.CheckBoxFor(m => m.RememberMe) - @Html.LabelFor(m => m.RememberMe) -
-
-
-
-
- -
-
-

- @Html.ActionLink("Registrar como nuevo usuario", "Register") -

- @* Habilite esta opción después de habilitar la confirmación de la cuenta para la función de restablecimiento de contraseña -

- @Html.ActionLink("¿Ha olvidado su contraseña?", "ForgotPassword") -

*@ - } -
-
-
-
- @Html.Partial("_ExternalLoginsListPartial", new ExternalLoginListViewModel { ReturnUrl = ViewBag.ReturnUrl }) -
-
-
- -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml deleted file mode 100644 index fbb39a41c..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml +++ /dev/null @@ -1,41 +0,0 @@ -@model AYA.SlnSinort.Models.RegisterViewModel -@{ - ViewBag.Title = "Registrarse"; -} - -

@ViewBag.Title.

- -@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() -

Cree una cuenta nueva.

-
- @Html.ValidationSummary("", new { @class = "text-danger" }) -
- @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) -
-
-
- @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.Password, new { @class = "form-control" }) -
-
-
- @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) -
-
-
-
- -
-
-} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml deleted file mode 100644 index ea7a714d2..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml +++ /dev/null @@ -1,42 +0,0 @@ -@model AYA.SlnSinort.Models.ResetPasswordViewModel -@{ - ViewBag.Title = "Restablecer contraseña"; -} - -

@ViewBag.Title.

- -@using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() -

Restablezca la contraseña.

-
- @Html.ValidationSummary("", new { @class = "text-danger" }) - @Html.HiddenFor(model => model.Code) -
- @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) -
-
-
- @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.Password, new { @class = "form-control" }) -
-
-
- @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) -
-
-
-
- -
-
-} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPasswordConfirmation.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPasswordConfirmation.cshtml deleted file mode 100644 index ebbc12b80..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPasswordConfirmation.cshtml +++ /dev/null @@ -1,12 +0,0 @@ -@{ - ViewBag.Title = "Confirmación de restablecimiento de contraseña"; -} - -
-

@ViewBag.Title.

-
-
-

- Se restableció la contraseña. @Html.ActionLink("Haga clic aquí para iniciar sesión", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) -

-
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml deleted file mode 100644 index 80690ecfc..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml +++ /dev/null @@ -1,24 +0,0 @@ -@model AYA.SlnSinort.Models.SendCodeViewModel -@{ - ViewBag.Title = "Enviar"; -} - -

@ViewBag.Title.

- -@using (Html.BeginForm("SendCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { - @Html.AntiForgeryToken() - @Html.Hidden("rememberMe", @Model.RememberMe) -

Enviar código de verificación

-
-
-
- Seleccione el proveedor de autenticación en dos fases: - @Html.DropDownListFor(model => model.SelectedProvider, Model.Providers) - -
-
-} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml deleted file mode 100644 index 93487b066..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml +++ /dev/null @@ -1,38 +0,0 @@ -@model AYA.SlnSinort.Models.VerifyCodeViewModel -@{ - ViewBag.Title = "Verificar"; -} - -

@ViewBag.Title.

- -@using (Html.BeginForm("VerifyCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { - @Html.AntiForgeryToken() - @Html.Hidden("provider", @Model.Provider) - @Html.Hidden("rememberMe", @Model.RememberMe) -

Introducir código de verificación

-
- @Html.ValidationSummary("", new { @class = "text-danger" }) -
- @Html.LabelFor(m => m.Code, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.Code, new { @class = "form-control" }) -
-
-
-
-
- @Html.CheckBoxFor(m => m.RememberBrowser) - @Html.LabelFor(m => m.RememberBrowser) -
-
-
-
-
- -
-
-} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml deleted file mode 100644 index d5a96054c..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml +++ /dev/null @@ -1,28 +0,0 @@ -@model AYA.SlnSinort.Models.ExternalLoginListViewModel -@using Microsoft.Owin.Security - -

Use otro servicio para iniciar sesión.

-
-@{ - var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); - if (loginProviders.Count() == 0) { -
-

- No hay servicios de autenticación externos configurados. Consulte este artículo - para obtener más información acerca de la configuración de esta aplicación ASP.NET para admitir el inicio de sesión mediante servicios externos. -

-
- } - else { - using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) { - @Html.AntiForgeryToken() -
-

- @foreach (AuthenticationDescription p in loginProviders) { - - } -

-
- } - } -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/AddPhoneNumber.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/AddPhoneNumber.cshtml deleted file mode 100644 index 7c1f34ac0..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/AddPhoneNumber.cshtml +++ /dev/null @@ -1,29 +0,0 @@ -@model AYA.SlnSinort.Models.AddPhoneNumberViewModel -@{ - ViewBag.Title = "Número de teléfono"; -} - -

@ViewBag.Title.

- -@using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() -

Agregar un número de teléfono

-
- @Html.ValidationSummary("", new { @class = "text-danger" }) -
- @Html.LabelFor(m => m.Number, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.Number, new { @class = "form-control" }) -
-
-
-
- -
-
-} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ChangePassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ChangePassword.cshtml deleted file mode 100644 index 139c6730d..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ChangePassword.cshtml +++ /dev/null @@ -1,40 +0,0 @@ -@model AYA.SlnSinort.Models.ChangePasswordViewModel -@{ - ViewBag.Title = "Cambiar contraseña"; -} - -

@ViewBag.Title.

- -@using (Html.BeginForm("ChangePassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() -

Formulario para cambiar la contraseña

-
- @Html.ValidationSummary("", new { @class = "text-danger" }) -
- @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" }) -
-
-
- @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) -
-
-
- @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) -
-
-
-
- -
-
-} -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/Index.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/Index.cshtml deleted file mode 100644 index 1c8d77e83..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/Index.cshtml +++ /dev/null @@ -1,84 +0,0 @@ -@model AYA.SlnSinort.Models.IndexViewModel -@{ - ViewBag.Title = "Gestionar"; -} - -

@ViewBag.Title.

- -

@ViewBag.StatusMessage

-
-

Cambiar la configuración de la cuenta

-
-
-
Contraseña:
-
- [ - @if (Model.HasPassword) - { - @Html.ActionLink("Cambiar la contraseña", "ChangePassword") - } - else - { - @Html.ActionLink("Crear", "SetPassword") - } - ] -
-
Inicios de sesión externos:
-
- @Model.Logins.Count [ - @Html.ActionLink("Administrar", "ManageLogins") ] -
- @* - Los números de teléfono se pueden usar como un segundo factor de comprobación en un sistema de autenticación en dos fases. - - Consulte este artículo - para obtener más información acerca de la configuración de esta aplicación ASP.NET para admitir la autenticación en dos fases con SMS. - - Quite la marca de comentario del siguiente bloque una vez haya configurado la autenticación en dos fases - *@ - @* -
Número de teléfono:
-
- @(Model.PhoneNumber ?? "Ninguno") [ - @if (Model.PhoneNumber != null) - { - @Html.ActionLink("Cambiar", "AddPhoneNumber") - @:  |  - @Html.ActionLink("Quitar", "RemovePhoneNumber") - } - else - { - @Html.ActionLink("Agregar", "AddPhoneNumber") - } - ] -
- *@ -
Autenticación de dos factores:
-
-

- No hay ningún proveedor de autenticación en dos fases configurado. Consulte este artículo - para obtener más información acerca de la configuración de esta aplicación ASP.NET para admitir la autenticación en dos fases. -

- @*@if (Model.TwoFactor) - { - using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) - { - @Html.AntiForgeryToken() - Habilitado - - - } - } - else - { - using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) - { - @Html.AntiForgeryToken() - Deshabilitado - - - } - }*@ -
-
-
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ManageLogins.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ManageLogins.cshtml deleted file mode 100644 index 56f99de7b..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/ManageLogins.cshtml +++ /dev/null @@ -1,70 +0,0 @@ -@model AYA.SlnSinort.Models.ManageLoginsViewModel -@using Microsoft.Owin.Security -@{ - ViewBag.Title = "Administrar los inicios de sesión externos"; -} - -

@ViewBag.Title.

- -

@ViewBag.StatusMessage

-@{ - var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); - if (loginProviders.Count() == 0) { -
-

- No hay servicios de autenticación externos configurados. Consulte este artículo - para obtener más información acerca de la configuración de esta aplicación ASP.NET para admitir el inicio de sesión mediante servicios externos. -

-
- } - else - { - if (Model.CurrentLogins.Count > 0) - { -

Inicios de sesión registrados

- - - @foreach (var account in Model.CurrentLogins) - { - - - - - } - -
@account.LoginProvider - @if (ViewBag.ShowRemoveButton) - { - using (Html.BeginForm("RemoveLogin", "Manage")) - { - @Html.AntiForgeryToken() -
- @Html.Hidden("loginProvider", account.LoginProvider) - @Html.Hidden("providerKey", account.ProviderKey) - -
- } - } - else - { - @:   - } -
- } - if (Model.OtherLogins.Count > 0) - { - using (Html.BeginForm("LinkLogin", "Manage")) - { - @Html.AntiForgeryToken() -
-

- @foreach (AuthenticationDescription p in Model.OtherLogins) - { - - } -

-
- } - } - } -} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/SetPassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/SetPassword.cshtml deleted file mode 100644 index 8fb8a5675..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/SetPassword.cshtml +++ /dev/null @@ -1,39 +0,0 @@ -@model AYA.SlnSinort.Models.SetPasswordViewModel -@{ - ViewBag.Title = "Crear contraseña"; -} - -

@ViewBag.Title.

-

- No tiene un nombre de usuario y contraseña local para este sitio. Agregue una cuenta - local para que pueda iniciar sesión sin un inicio de sesión externo. -

- -@using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - -

Crear inicio de sesión local

-
- @Html.ValidationSummary("", new { @class = "text-danger" }) -
- @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) -
-
-
- @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) -
- @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) -
-
-
-
- -
-
-} -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -} \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/VerifyPhoneNumber.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/VerifyPhoneNumber.cshtml deleted file mode 100644 index 85bfdd9d9..000000000 --- a/AYA.SlnSynor/AYA.SlnSynor/Views/Manage/VerifyPhoneNumber.cshtml +++ /dev/null @@ -1,31 +0,0 @@ -@model AYA.SlnSinort.Models.VerifyPhoneNumberViewModel -@{ - ViewBag.Title = "Verificar número de teléfono"; -} - -

@ViewBag.Title.

- -@using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - @Html.Hidden("phoneNumber", @Model.PhoneNumber) -

Introduzca el código de verificación

-
@ViewBag.Status
-
- @Html.ValidationSummary("", new { @class = "text-danger" }) -
- @Html.LabelFor(m => m.Code, new { @class = "col-md-2 control-label" }) -
- @Html.TextBoxFor(m => m.Code, new { @class = "form-control" }) -
-
-
-
- -
-
-} - -@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -}