|
@@ -27,9 +27,9 @@ namespace Luticate2.Auth.Business
|
27
|
27
|
return LuResult<UsersToken>.Ok(new UsersToken());//TODO
|
28
|
28
|
}
|
29
|
29
|
|
30
|
|
- public LuResult<bool> IsTokenValid(UsersToken token)
|
|
30
|
+ public bool IsTokenValid(UsersToken token)
|
31
|
31
|
{
|
32
|
|
- return LuResult<bool>.Ok(true);
|
|
32
|
+ return true;
|
33
|
33
|
}
|
34
|
34
|
|
35
|
35
|
public LuResult<UsersDbo> GetSingleById(string id)
|
|
@@ -40,5 +40,15 @@ namespace Luticate2.Auth.Business
|
40
|
40
|
Username = "user-" + id.Split('-')[0]
|
41
|
41
|
});//TODO
|
42
|
42
|
}
|
|
43
|
+
|
|
44
|
+ public string HashPassword(string password, string salt)
|
|
45
|
+ {
|
|
46
|
+ return "";//TODO
|
|
47
|
+ }
|
|
48
|
+
|
|
49
|
+ public bool VerifyPasswordHash(string password, string hash, string salt)
|
|
50
|
+ {
|
|
51
|
+ return true;//TODO
|
|
52
|
+ }
|
43
|
53
|
}
|
44
|
54
|
}
|