File tree Expand file tree Collapse file tree
SSCMS.Web/wwwroot/sitefiles/assets/js
tests/SSCMS.Core.Tests/Repositories Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,17 +21,6 @@ public async Task<AccessToken> GetByTokenAsync(string token)
2121 _settingsManager . Encrypt ( token ) )
2222 . CachingGet ( cacheKey )
2323 ) ;
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- // });
3524 }
3625 }
3726}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ var methods = {
2121 var res = response . data ;
2222
2323 $this . message = res . summary + ' ' + res . message ;
24- $this . stackTrace = res . stackTrace ;
24+ $this . stackTrace = res . stackTrace ? res . stackTrace . replace ( / \n / g , "<br>" ) : "" ;
2525 $this . createdDate = res . createdDate ;
2626 } ) . catch ( function ( error ) {
2727 utils . error ( error ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ var methods = {
2121 var res = response . data ;
2222
2323 $this . message = res . summary + ' ' + res . message ;
24- $this . stackTrace = res . stackTrace ;
24+ $this . stackTrace = res . stackTrace ? res . stackTrace . replace ( / \n / g , "<br>" ) : "" ;
2525 $this . createdDate = res . createdDate ;
2626 } ) . catch ( function ( error ) {
2727 utils . error ( error ) ;
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public async Task TestInsert()
6060
6161 Assert . NotNull ( entity ) ;
6262 Assert . True ( ! string . IsNullOrWhiteSpace ( userInfo . Password ) ) ;
63- Assert . True ( userInfo . PasswordFormat == PasswordFormat . Encrypted ) ;
63+ Assert . True ( userInfo . PasswordFormat == PasswordFormat . SM4 ) ;
6464 Assert . True ( ! string . IsNullOrWhiteSpace ( userInfo . PasswordSalt ) ) ;
6565
6666 userInfo = await _userRepository . GetByUserNameAsync ( TestUserName ) ;
You can’t perform that action at this time.
0 commit comments