Commit 329ee9dd authored by Israel's avatar Israel

username substring to removed domain on debug mode

parent 63f5186f
namespace Unosquare.PassCore.Web.Helpers
using System.Collections.Generic;
using Unosquare.PassCore.Web.Models;
internal class DebugPasswordChangeProvider : IPasswordChangeProvider
public ApiErrorItem PerformPasswordChange(ChangePasswordModel model)
switch (model.Username)
var username = model.Username.Substring(0, model.Username.IndexOf("@"));
switch (username)
case "pass":
return null;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment