File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 13
13
from h import models
14
14
from h .models import User
15
15
from h .services .oauth import DEFAULT_SCOPES
16
- from h .services .user_signup import UserSignupService
17
16
18
17
from h .util .datetime import utc_iso8601
19
18
from h .views .api .config import api_config
@@ -166,7 +165,7 @@ def _authorized_response(self):
166
165
h_key = self .request .cookies .get ('h_key' )
167
166
user_tosdr = self .user_svc .fetch_from_tosdr (h_key )
168
167
username = user_tosdr .username
169
- user = self .user_svc .fetch (username , authority = "tosdr" )
168
+ user = self .user_svc .fetch (username , authority = self . request . default_authority )
170
169
# TOSDR : create user in h if it does not exist
171
170
if not user :
172
171
password = '' .join (random .choice (string .printable ) for i in range (12 ))
You can’t perform that action at this time.
0 commit comments