Commit 6d7b3c68 authored by o2null's avatar o2null
Browse files

Merge branch 'fix/sso_master' into 'master'

修复sso encrypt

See merge request o2oa/o2oa!6099
No related merge requests found
Showing with 1 addition and 2 deletions
+1 -2
......@@ -40,8 +40,7 @@ class ActionGetEncrypt extends BaseAction {
throw new ExceptionClientNotExist(client);
}
String str = credential + TOKEN_SPLIT + new Date().getTime();
byte[] bs = Crypto.encrypt(str.getBytes(DefaultCharset.charset), key.getBytes());
String token = new String(Base64.encodeBase64(bs), DefaultCharset.charset);
String token = Crypto.encrypt(str, key);
Wo wo = new Wo();
wo.setToken(token);
result.setData(wo);
......
Supports Markdown
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