Skip to content

Commit bb48ed5

Browse files
Fix sign-in issue (#142)
* add redirect to auth page * linter issue
1 parent 3680066 commit bb48ed5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controllers/ds_common_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def handle_redirects
1818
session[:quickstarted] = true
1919
redirect_to '/auth/docusign'
2020
elsif session[:been_here].nil?
21+
return redirect_to '/auth/docusign' if session[:ds_access_token].nil? || session[:ds_base_path].nil?
22+
2123
enableCFR = ESign::GetDataService.new(session[:ds_access_token], session[:ds_base_path]).cfr?(session[:ds_account_id])
2224
if enableCFR == 'enabled'
2325
session[:status_cfr] = 'enabled'

0 commit comments

Comments
 (0)