Skip to content

Commit 60c193c

Browse files
authored
Bump version and fixes (#684)
### Description Please explain the changes you made here. ### Checklist - [ ] Created tests which fail without the change (if possible) - [ ] All tests passing - [ ] Extended the documentation, if necessary
1 parent 7238091 commit 60c193c

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

app/core/users/endpoints_users.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,16 @@ async def create_user(
301301
# After adding the unconfirmed user to the database, we got an activation token that need to be send by email,
302302
# in order to make sure the email address is valid
303303

304+
account_type, school_id = await get_account_type_and_school_id_from_email(
305+
email=email,
306+
db=db,
307+
)
308+
304309
calypsso_activate_url = settings.CLIENT_URL + calypsso.get_activate_relative_url(
305310
activation_token=activation_token,
306-
external=True,
311+
external=(
312+
account_type != AccountType.student
313+
), # External users are not asked for ECL specific information
307314
)
308315

309316
if settings.SMTP_ACTIVE:

app/core/utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class Settings(BaseSettings):
192192

193193
# Hyperion follows Semantic Versioning
194194
# https://semver.org/
195-
HYPERION_VERSION: str = "4.1.0"
195+
HYPERION_VERSION: str = "4.2.0"
196196
MINIMAL_TITAN_VERSION_CODE: int = 139
197197

198198
######################################

app/utils/auth/providers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ class OpenProjectAuthClient(BaseAuthClient):
300300
# See app.types.scopes_type.ScopeType for possible values
301301
allowed_scopes: set[ScopeType | str] = {ScopeType.openid, ScopeType.profile}
302302

303+
allowed_account_types: list[AccountType] | None = None
304+
303305
@classmethod
304306
def get_userinfo(cls, user: models_users.CoreUser):
305307
return {

0 commit comments

Comments
 (0)