mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-12 00:59:52 +01:00
Auth: Strip phone number
This commit is contained in:
parent
27e5c31deb
commit
61f378e7a2
@ -43,7 +43,7 @@ addReducer('initApi', (global: GlobalState, actions) => {
|
||||
addReducer('setAuthPhoneNumber', (global, actions, payload) => {
|
||||
const { phoneNumber } = payload!;
|
||||
|
||||
void callApi('provideAuthPhoneNumber', phoneNumber);
|
||||
void callApi('provideAuthPhoneNumber', phoneNumber.replace(/[^\d]/g, ''));
|
||||
|
||||
return {
|
||||
...global,
|
||||
|
Loading…
Reference in New Issue
Block a user