You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.
Step 0:
Expected Behaviour
Logging in with the same email and server as an existing user account should not be possible.
Actual Behaviour
It is possible.
Affected Projects
Any project that creates / uses
SpeckleCache.db
.PySpeckle
creates aSpeckleCache.db
file if none is found and enforces uniqueness.Proposed Solution (if any)
When creating
Account
table inSpeckleCache.db
, setRestApi
andEmail
to be unique by doingUNIQUE(RestApi,Email)
.I.e.
'''CREATE TABLE Account ([AccountId] integer NOT NULL PRIMARY KEY AUTOINCREMENT,[ServerName] varchar, [RestApi] varchar, [Email] varchar, [Token] varchar, [IsDefault] integer, UNIQUE(RestApi,Email))'''
The text was updated successfully, but these errors were encountered: