File tree Expand file tree Collapse file tree 4 files changed +3
-14
lines changed
SSCMS.Web/wwwroot/sitefiles/assets/js
tests/SSCMS.Core.Tests/Repositories Expand file tree Collapse file tree 4 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,6 @@ public async Task<AccessToken> GetByTokenAsync(string token)
21
21
_settingsManager . Encrypt ( token ) )
22
22
. CachingGet ( cacheKey )
23
23
) ;
24
-
25
- //var cacheKey = GetCacheKeyByToken(token);
26
- //return await
27
- // _cache.GetOrCreateAsync(cacheKey, async entry =>
28
- // {
29
- // var accessToken = await _repository.GetAsync(Q
30
- // .Where(nameof(AccessToken.Token), WebConfigUtils.EncryptStringBySecretKey(token))
31
- // );
32
-
33
- // return accessToken;
34
- // });
35
24
}
36
25
}
37
26
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ var methods = {
21
21
var res = response . data ;
22
22
23
23
$this . message = res . summary + ' ' + res . message ;
24
- $this . stackTrace = res . stackTrace ;
24
+ $this . stackTrace = res . stackTrace ? res . stackTrace . replace ( / \n / g , "<br>" ) : "" ;
25
25
$this . createdDate = res . createdDate ;
26
26
} ) . catch ( function ( error ) {
27
27
utils . error ( error ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ var methods = {
21
21
var res = response . data ;
22
22
23
23
$this . message = res . summary + ' ' + res . message ;
24
- $this . stackTrace = res . stackTrace ;
24
+ $this . stackTrace = res . stackTrace ? res . stackTrace . replace ( / \n / g , "<br>" ) : "" ;
25
25
$this . createdDate = res . createdDate ;
26
26
} ) . catch ( function ( error ) {
27
27
utils . error ( error ) ;
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public async Task TestInsert()
60
60
61
61
Assert . NotNull ( entity ) ;
62
62
Assert . True ( ! string . IsNullOrWhiteSpace ( userInfo . Password ) ) ;
63
- Assert . True ( userInfo . PasswordFormat == PasswordFormat . Encrypted ) ;
63
+ Assert . True ( userInfo . PasswordFormat == PasswordFormat . SM4 ) ;
64
64
Assert . True ( ! string . IsNullOrWhiteSpace ( userInfo . PasswordSalt ) ) ;
65
65
66
66
userInfo = await _userRepository . GetByUserNameAsync ( TestUserName ) ;
You can’t perform that action at this time.
0 commit comments