
- Validates old password and updates to new one using UserManager - Secured the endpoint for authenticated users only
18 lines
361 B
C#
18 lines
361 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Marco.Pms.Model.Dtos.Authentication
|
|
{
|
|
public class ChangePasswordDto
|
|
{
|
|
public string? Email { get; set; }
|
|
|
|
public string? OldPassword { get; set; }
|
|
|
|
public string? NewPassword { get; set; }
|
|
}
|
|
}
|