Webatrice: fix login bugs (#4557)

* fix login after failed connection attempts, limit connection attempt time

* fix register hashed password and salt

* add feature detection and Unsupported Browser screen

* nit

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-02-04 13:07:15 -06:00 committed by GitHub
parent 81d031ca0f
commit bb16ae09ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 104 additions and 18 deletions

View file

@ -18,6 +18,9 @@ export const Actions = {
type: Types.CONNECTION_CLOSED,
reason
}),
connectionFailed: () => ({
type: Types.CONNECTION_FAILED,
}),
serverMessage: message => ({
type: Types.SERVER_MESSAGE,
message

View file

@ -15,6 +15,9 @@ export const Dispatch = {
connectionClosed: reason => {
store.dispatch(Actions.connectionClosed(reason));
},
connectionFailed: () => {
store.dispatch(Actions.connectionFailed());
},
updateBuddyList: buddyList => {
store.dispatch(Actions.updateBuddyList(buddyList));
},

View file

@ -3,6 +3,7 @@ export const Types = {
LOGIN_SUCCESSFUL: '[Server] Login Successful',
LOGIN_FAILED: '[Server] Login Failed',
CONNECTION_CLOSED: '[Server] Connection Closed',
CONNECTION_FAILED: '[Server] Connection Failed',
SERVER_MESSAGE: '[Server] Server Message',
UPDATE_BUDDY_LIST: '[Server] Update Buddy List',
ADD_TO_BUDDY_LIST: '[Server] Add to Buddy List',