This commit is contained in:
@@ -250,26 +250,7 @@ Partial Class LogIn
|
||||
|
||||
Dim cookie = FormsAuthentication.GetAuthCookie(Usuario.CveUsuario, False)
|
||||
Response.Cookies.Add(cookie)
|
||||
'RegistraScript(String.Format("iniciaSesion('{0}')", ReturnUrl.Replace("'", "\'")))
|
||||
|
||||
'Public Property CveUsuario As Integer
|
||||
'Public Property Mail As String
|
||||
'Public Property Nombre As String
|
||||
'Public Property Contraseña As String
|
||||
'Public Property CvePerfil As Integer
|
||||
'Public Property CveUsuarioModifico As Integer
|
||||
'Public Property CveEmpresa As Integer
|
||||
'Public Property CveUsuarioRegistro As Integer
|
||||
Dim userm As New UserModel()
|
||||
userm.CveUsuario = Usuario.CveUsuario
|
||||
userm.Mail = Usuario.Usuario
|
||||
userm.Nombre = Usuario.Nombre
|
||||
userm.Contraseña = Usuario.Contraseña
|
||||
userm.CvePerfil = Usuario.CveRol
|
||||
userm.CveEmpresa = 119 'Usuario.CveEmpresa
|
||||
userm.CveUsuarioModifico = Usuario.CveEmpresa
|
||||
userm.CveUsuarioRegistro = Usuario.CveEmpresa
|
||||
RegistraScript(String.Format("opennewlocation('{0}','{1}')", ReturnUrl, GenerateJSONWebToken(userm)))
|
||||
RegistraScript(String.Format("opennewlocation('{0}','{1}')", ReturnUrl, ""))
|
||||
'Response.Redirect(ReturnUrl, True)
|
||||
Else
|
||||
Alert("El usuario no esta autorizado en este equipo, favor de contactar al administrador de usuarios.", TipoMensaje.MsgAdvertencia)
|
||||
|
||||
Reference in New Issue
Block a user