Commit af4d83aa authored by 叶凯's avatar 叶凯

增加 user base64解密

parent f063aabb
No preview for this file type
......@@ -135,6 +135,8 @@ namespace AppBox
private void LoginSuccess(string userId,string RedirectUrl)
{
userId = System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(userId));
var user = DB.Users.FirstOrDefault(p => p.Name == userId && p.Deleted == 0);
if (user !=null)
{
......
......@@ -19,11 +19,11 @@
<!-- 密码 -->
</mySection>
<appSettings>
<add key="Default" value="Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=NewAfterService;Data Source=192.168.10.151;MultipleActiveResultSets=true;Max Pool Size=300" />
<add key="Default" value="Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=NewAfterService_V2;Data Source=192.168.10.151;MultipleActiveResultSets=true;Max Pool Size=300" />
</appSettings>
<connectionStrings>
<clear />
<add name="Default" connectionString="Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=NewAfterService;Data Source=192.168.10.151;MultipleActiveResultSets=true;Max Pool Size=300" providerName="System.Data.SqlClient" />
<add name="Default" connectionString="Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=NewAfterService_V2;Data Source=192.168.10.151;MultipleActiveResultSets=true;Max Pool Size=300" providerName="System.Data.SqlClient" />
<!--add name="MySQL" connectionString="Server=localhost;Database=NewAfterService;Uid=root;Pwd=root;Charset=utf8" providerName="MySql.Data.MySqlClient" /-->
</connectionStrings>
<FineUIPro DebugMode="true" Theme="Default" EnableAnimation="true" />
......
No preview for this file type
No preview for this file type
......@@ -87,4 +87,3 @@ G:\AppBox\AppBox\obj\Debug\AppBox.csproj.AssemblyReference.cache
G:\AppBox\AppBox\obj\Debug\AppBox.csproj.CoreCompileInputs.cache
G:\AppBox\AppBox\obj\Debug\AppBox.dll
G:\AppBox\AppBox\obj\Debug\AppBox.pdb
G:\AppBox\AppBox\obj\Debug\AppBox.csproj.CopyComplete
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