Browse Source
Merge pull request #21553 from abpframework/berkan/cli
Ensure `.abp/cli` folder created when executing login command
pull/21554/head
Engincan VESKE
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs
|
|
|
@ -85,7 +85,11 @@ public class AuthService : IAuthService, ITransientDependency |
|
|
|
} |
|
|
|
|
|
|
|
var accessToken = await AuthenticationService.GetAccessTokenAsync(configuration); |
|
|
|
|
|
|
|
|
|
|
|
if (!Directory.Exists(CliPaths.Root)) |
|
|
|
{ |
|
|
|
Directory.CreateDirectory(CliPaths.Root); |
|
|
|
} |
|
|
|
File.WriteAllText(CliPaths.AccessToken, accessToken, Encoding.UTF8); |
|
|
|
} |
|
|
|
|
|
|
|
|