Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
9994abaf
Commit
9994abaf
authored
Sep 24, 2018
by
ueshiba
Browse files
Handle trial accounts when plan is not renewable
parent
22273c11
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/Library/Account/DefaultAccountProvider.swift
View file @
9994abaf
...
...
@@ -285,7 +285,13 @@ class DefaultAccountProvider: AccountProvider, ConfigurationAccess, DatabaseAcce
return
}
guard
info
.
isRenewable
else
{
callback
?(
nil
,
ClientError
.
renewingNonRenewable
)
//We need to check if the plan is a trial even when the plan is not renewable, as the
//error message should be different for each scenario
if
info
.
plan
==
.
trial
{
callback
?(
nil
,
ClientError
.
renewingTrial
)
}
else
{
callback
?(
nil
,
ClientError
.
renewingNonRenewable
)
}
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment