Changeset e007fcd for components/poker


Ignore:
Timestamp:
07/16/22 21:31:18 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
e903234
Parents:
55701f0
Message:

Now you need to activate your account via email & also added mail sending after server crash

Location:
components/poker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • components/poker/PokerHeader.jsx

    r55701f0 re007fcd  
    3434        axios.get(`/api/poker?action=get_player_info_on_enter&session_id=${localStorage.CAESSINO_SESSION_ID}`).then(res => {
    3535            if (res.data?.success) {
     36                dispatch(setPlayer({
     37                    ...playerState.player,
     38                    displayName: res.data?.displayName,
     39                    username: res.data?.username,
     40                    session_id: res.data?.session_id,
     41                    credits: res.data?.credits,
     42                }))
     43
    3644                if (interval !== null) clearInterval(interval);
    3745
  • components/poker/sections/PickATable.jsx

    r55701f0 re007fcd  
    3232
    3333    function createATable() {
    34         axios.get(`/api/poker?action=create_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&displayName=${playerState.player.displayName}&tableName=${styleState.poker.inputControls.tableName}`);
     34        axios.get(`/api/poker?action=create_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&displayName=${playerState.player.displayName}&tableName=${styleState.poker.inputControls.tableName}&username=${playerState.player.username}`);
    3535    }
    3636
    3737    function joinATable(e) {
    38         axios.get(`/api/poker?action=join_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&tableId=${e.target?.dataset?.table}&displayName=${playerState.player.displayName}`);
     38        axios.get(`/api/poker?action=join_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&tableId=${e.target?.dataset?.table}&displayName=${playerState.player.displayName}&username=${playerState.player.username}`);
    3939    }
    4040
Note: See TracChangeset for help on using the changeset viewer.