Skip to content

Commit

Permalink
Prepare for next release (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
irshadahmad21 authored Dec 8, 2024
1 parent 4b2742f commit d2e6e65
Show file tree
Hide file tree
Showing 17 changed files with 188 additions and 174 deletions.
5 changes: 0 additions & 5 deletions .changeset/calm-months-shave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/little-onions-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sixty-seahorses-design.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/three-games-wink.md

This file was deleted.

10 changes: 10 additions & 0 deletions plugins/wptelegram-login/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.11.7

### Patch Changes

- [#224](https://github.com/wpsocio/wp-projects/pull/224) [`d179cce`](https://github.com/wpsocio/wp-projects/commit/d179ccea6d9d24fdac9f863351ad6dd826a741c4) Thanks [@irshadahmad21](https://github.com/irshadahmad21)! - Improved login handler to add more actions and filters

- [#219](https://github.com/wpsocio/wp-projects/pull/219) [`93f3cbd`](https://github.com/wpsocio/wp-projects/commit/93f3cbd9ea8123a42cec3bee2731503a78f7aca4) Thanks [@irshadahmad21](https://github.com/irshadahmad21)! - Updated user ID column to make it clickable with ID and username

- [#218](https://github.com/wpsocio/wp-projects/pull/218) [`06fbeea`](https://github.com/wpsocio/wp-projects/commit/06fbeea2962b53c760f05824e0437a5fe0dda72c) Thanks [@irshadahmad21](https://github.com/irshadahmad21)! - Fixed a race condition to prevent duplicate Mini App users

## 1.11.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions plugins/wptelegram-login/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
**Tags:** telegram, login, register, social, signup
**Requires at least:** 6.4
**Requires PHP:** 7.4
**Tested up to:** 6.7
**Stable tag:** 1.11.6
**Tested up to:** 6.7.1
**Stable tag:** 1.11.7
**License:** GPL-3.0-or-later
**License URI:** [https://www.gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html)
**Donate link:** [wpsocio.com/donate](https://wpsocio.com/donate)
Expand Down
2 changes: 1 addition & 1 deletion plugins/wptelegram-login/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wpsocio/wptelegram-login",
"version": "1.11.6",
"version": "1.11.7",
"description": "Let the users login to your website with their Telegram and make it simple for them to get connected and let them receive their email notifications on Telegram.",
"scripts": {
"gen:docs": "\"vendor/bin/wp-documentor\" parse src --format=markdown --output=docs/README.md --relative=docs",
Expand Down
86 changes: 57 additions & 29 deletions plugins/wptelegram-login/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Argument | Type | Description
-------- | ---- | -----------
`$auth_data` | `array` | The authenticated user data.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 56](../src/shared/LoginHandler.php#L56-L61)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 68](../src/shared/LoginHandler.php#L68-L73)

### `wptelegram_login_after_save_user_data`

Expand All @@ -35,7 +35,7 @@ Argument | Type | Description
`$wp_user_id` | `int` | The WordPress user ID.
`$auth_data` | `array` | The authenticated user data.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 65](../src/shared/LoginHandler.php#L65-L71)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 77](../src/shared/LoginHandler.php#L77-L83)

### `wptelegram_login_before_user_login`

Expand All @@ -47,7 +47,7 @@ Argument | Type | Description
-------- | ---- | -----------
`$wp_user_id` | `int` | The WordPress user ID.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 82](../src/shared/LoginHandler.php#L82-L87)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 96](../src/shared/LoginHandler.php#L96-L101)

### `wptelegram_login_after_user_login`

Expand All @@ -61,7 +61,7 @@ Argument | Type | Description
-------- | ---- | -----------
`$wp_user_id` | `int` | The WordPress user ID.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 94](../src/shared/LoginHandler.php#L94-L101)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 108](../src/shared/LoginHandler.php#L108-L115)

### `wptelegram_login`

Expand All @@ -80,7 +80,7 @@ Version | Description
------- | -----------
`1.3.4` |

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 116](../src/shared/LoginHandler.php#L116-L124)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 130](../src/shared/LoginHandler.php#L130-L138)

### `wptelegram_login_before_redirect`

Expand All @@ -94,7 +94,20 @@ Argument | Type | Description
-------- | ---- | -----------
`$user` | `\WP_User` | The logged in user.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 133](../src/shared/LoginHandler.php#L133-L140)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 147](../src/shared/LoginHandler.php#L147-L154)

### `wptelegram_login_pre_insert_user`

*Fires before the user is inserted into the database.*

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$userdata` | `array` | The user data inserted into the database.
`$auth_data` | `array` | The user data from Telegram.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 586](../src/shared/LoginHandler.php#L586-L592)

### `wptelegram_login_after_insert_user`

Expand All @@ -105,9 +118,10 @@ Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 133
Argument | Type | Description
-------- | ---- | -----------
`$wp_user_id` | `int` | The WordPress user ID.
`$userdata` | `array` | The user data.
`$userdata` | `array` | The user data inserted into the database.
`$auth_data` | `array` | The user data from Telegram.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 579](../src/shared/LoginHandler.php#L579-L585)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 600](../src/shared/LoginHandler.php#L600-L607)

### `wptelegram_login_after_update_user`

Expand All @@ -120,7 +134,7 @@ Argument | Type | Description
`$wp_user_id` | `int` | The WordPress user ID.
`$userdata` | `array` | The user data.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 615](../src/shared/LoginHandler.php#L615-L621)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 638](../src/shared/LoginHandler.php#L638-L644)

### `wptelegram_login_after_update_user_meta`

Expand All @@ -132,7 +146,7 @@ Argument | Type | Description
-------- | ---- | -----------
`$wp_user_id` | `int` | The WordPress user ID.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 635](../src/shared/LoginHandler.php#L635-L640)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 663](../src/shared/LoginHandler.php#L663-L668)

## Filters

Expand Down Expand Up @@ -281,7 +295,7 @@ Argument | Type | Description
`$validation_query_params` | `array` | The validation query parameters.
`$input` | `array` | The input data.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 204](../src/shared/LoginHandler.php#L204-L210)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 218](../src/shared/LoginHandler.php#L218-L224)

### `wptelegram_login_clean_input`

Expand All @@ -294,7 +308,7 @@ Argument | Type | Description
`$clean_input` | `array` | The cleaned input.
`$input` | `array` | The input data.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 214](../src/shared/LoginHandler.php#L214-L220)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 228](../src/shared/LoginHandler.php#L228-L234)

### `wptelegram_login_valid_auth_data`

Expand All @@ -307,7 +321,7 @@ Argument | Type | Description
`$auth_data` | `array` | The valid auth data.
`$input_data` | `array` | The input data.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 264](../src/shared/LoginHandler.php#L264-L270)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 282](../src/shared/LoginHandler.php#L282-L288)

### `wptelegram_login_hash_auth_data`

Expand All @@ -321,7 +335,7 @@ Argument | Type | Description
`$auth_data` | `array` | The auth data received.
`$secret_key` | `string` | The secret key.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 298](../src/shared/LoginHandler.php#L298-L305)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 316](../src/shared/LoginHandler.php#L316-L323)

### `wptelegram_login_get_secret_key`

Expand All @@ -335,7 +349,7 @@ Argument | Type | Description
`$data_source` | `string` | The data source.
`$bot_token` | `string` | The bot token.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 344](../src/shared/LoginHandler.php#L344-L351)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 362](../src/shared/LoginHandler.php#L362-L369)

### `wptelegram_login_random_email_host`

Expand All @@ -348,7 +362,7 @@ Argument | Type | Description
`$host` | `string` | The host for the random email.
`$user` | `\WP_User` | The current user.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 365](../src/shared/LoginHandler.php#L365-L371)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 383](../src/shared/LoginHandler.php#L383-L389)

### `wptelegram_login_random_email_user`

Expand All @@ -361,7 +375,7 @@ Argument | Type | Description
`$random_user` | `string` | The username for the random email.
`$user` | `\WP_User` | The current user.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 374](../src/shared/LoginHandler.php#L374-L380)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 392](../src/shared/LoginHandler.php#L392-L398)

### `wptelegram_login_random_email`

Expand All @@ -376,7 +390,7 @@ Argument | Type | Description
`$random_user` | `string` | The username for the random email.
`$host` | `string` | The host for the random email.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 384](../src/shared/LoginHandler.php#L384-L392)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 402](../src/shared/LoginHandler.php#L402-L410)

### `wptelegram_login_disable_signup`

Expand All @@ -389,9 +403,9 @@ It means that the user must first create an account and connect it to Telegram t
Argument | Type | Description
-------- | ---- | -----------
`$disable_signup` | `bool` | Whether to disable sign up via Telegram.
`$data` | `array` | The user details.
`$auth_data` | `array` | The user data from Telegram.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 475](../src/shared/LoginHandler.php#L475-L483)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 487](../src/shared/LoginHandler.php#L487-L495)

### `wptelegram_login_always_update_user_data`

Expand All @@ -406,10 +420,10 @@ Pass `false` if you do not want to update user profile for existing users.
Argument | Type | Description
-------- | ---- | -----------
`$always_update` | `bool` | Whether to always update the user data.
`$data` | `array` | The user details.
`$auth_data` | `array` | The user data from Telegram.
`$existing_user_id` | `int\|null` | Existing WP User ID.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 493](../src/shared/LoginHandler.php#L493-L504)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 505](../src/shared/LoginHandler.php#L505-L516)

### `wptelegram_login_save_user_data`

Expand All @@ -419,10 +433,10 @@ Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 493

Argument | Type | Description
-------- | ---- | -----------
`$data` | `array` | The user details.
`$auth_data` | `array` | The user data from Telegram.
`$wp_user_id` | `int\|null` | Existing WP User ID.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 527](../src/shared/LoginHandler.php#L527-L533)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 539](../src/shared/LoginHandler.php#L539-L545)

### `wptelegram_login_unique_username`

Expand All @@ -434,7 +448,7 @@ Argument | Type | Description
-------- | ---- | -----------
`$unique_username` | `string` | The unique username.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 552](../src/shared/LoginHandler.php#L552-L557)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 564](../src/shared/LoginHandler.php#L564-L569)

### `wptelegram_login_insert_user_data`

Expand All @@ -444,9 +458,10 @@ Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 552

Argument | Type | Description
-------- | ---- | -----------
`$userdata` | `array` | The user data.
`$userdata` | `array` | The user data to insert into the database.
`$auth_data` | `array` | The user data from Telegram.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 566](../src/shared/LoginHandler.php#L566-L571)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 578](../src/shared/LoginHandler.php#L578-L584)

### `wptelegram_login_update_user_data`

Expand All @@ -460,7 +475,7 @@ Argument | Type | Description
-------- | ---- | -----------
`$userdata` | `array` | The user data.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 595](../src/shared/LoginHandler.php#L595-L602)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 618](../src/shared/LoginHandler.php#L618-L625)

### `wptelegram_login_user_redirect_to`

Expand All @@ -473,7 +488,7 @@ Argument | Type | Description
`$redirect_to` | `string` | The redirect URL.
`$user` | `\WP_User` | The logged in user.

Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 683](../src/shared/LoginHandler.php#L683-L689)
Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 711](../src/shared/LoginHandler.php#L711-L717)

### `wptelegram_login_web_app_login_data`

Expand Down Expand Up @@ -502,6 +517,19 @@ Argument | Type | Description

Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 410](../src/includes/AssetManager.php#L410-L416)

### `wptelegram_login_get_user_by_telegram_id`

*Filter the user found by its Telegram ID.*

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$user` | `\WPTelegram\Login\includes\WP_User\|false` | The user object or false.
`$tg_user_id` | `int\|string` | Telegram User ID.

Source: [src/includes/Utils.php](../src/includes/Utils.php), [line 111](../src/includes/Utils.php#L111-L117)

### `wptelegram_login_intercept_request_on`

*Filter the hook and priority to use for intercepting the login request.*
Expand Down
2 changes: 1 addition & 1 deletion plugins/wptelegram-login/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wptelegram-login",
"title": "WP Telegram Login",
"version": "1.11.6",
"version": "1.11.7",
"description": "Let the users login to your website with their Telegram and make it simple for them to get connected and let them receive their email notifications on Telegram.",
"private": true,
"license": "GPL-3.0-or-later",
Expand Down
Loading

0 comments on commit d2e6e65

Please sign in to comment.