Force primary email address from admin side

Hi,
is there a way to change the primary email address for a user through the Indico shell?

Thank you in advance.

Best regards,
C. Urban.

I guess it should be something similar to this: [SOLVED] Login issues, no such user - #2 by ThiefMaster

Anyway, I solved with new account registration and merging the old one with the new.

Cheers,
Cristiano.

Hi,
just for reminder, the primary email address can be changed through the Indico shell using these commands:

user = User.query.filter_by(email='current_email_address').first()
user.email = 'new_email_address'
db.session.commit()

Cheers,
Cristiano.

1 Like