diff --git a/flexiapi/.env.example b/flexiapi/.env.example index 56d569a..09dc03c 100644 --- a/flexiapi/.env.example +++ b/flexiapi/.env.example @@ -3,9 +3,12 @@ APP_ENV=local APP_KEY= APP_DEBUG=false APP_URL=http://localhost -APP_SIP_DOMAIN= +APP_SIP_DOMAIN=sip.example.com APP_FLEXISIP_PROXY_PID=/var/run/flexisip-proxy.pid +ACCOUNT_PROXY_REGISTRAR_ADDRESS=sip.example.com +ACCOUNT_TRANSPORT_PROTOCOL="TLS (recommended), TCP or UDP" + INSTANCE_COPYRIGHT= INSTANCE_INTRO_REGISTRATION= INSTANCE_CUSTOM_THEME=false @@ -37,6 +40,7 @@ MAIL_FROM_NAME= MAIL_ALLOW_SELF_SIGNED=false MAIL_VERIFY_PEER=true MAIL_VERIFY_PEER_NAME=true +MAIL_SIGNATURE="The Linphone Team" NEWSLETTER_REGISTRATION_ADDRESS= PHONE_AUTHENTICATION=true diff --git a/flexiapi/app/Http/Controllers/Account/AuthenticateController.php b/flexiapi/app/Http/Controllers/Account/AuthenticateController.php index 130b1d4..a12f6d8 100644 --- a/flexiapi/app/Http/Controllers/Account/AuthenticateController.php +++ b/flexiapi/app/Http/Controllers/Account/AuthenticateController.php @@ -28,7 +28,7 @@ class AuthenticateController extends Controller public function authenticate(Request $request) { $request->validate([ - 'username' => 'required', + 'username' => 'required|exists:external.accounts,username', 'password' => 'required' ]); diff --git a/flexiapi/app/Http/Controllers/Account/PasswordController.php b/flexiapi/app/Http/Controllers/Account/PasswordController.php index cc79368..bd75ae9 100644 --- a/flexiapi/app/Http/Controllers/Account/PasswordController.php +++ b/flexiapi/app/Http/Controllers/Account/PasswordController.php @@ -4,10 +4,12 @@ namespace App\Http\Controllers\Account; use App\Http\Controllers\Controller; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Mail; use App\Account; use App\Password; use App\Helpers\Utils; +use App\Mail\ConfirmedRegistration; class PasswordController extends Controller { @@ -21,7 +23,7 @@ class PasswordController extends Controller public function update(Request $request) { $request->validate([ - 'password' => 'required|confirmed|min:6', + 'password' => 'required|confirmed|filled', ]); $account = $request->user(); @@ -40,6 +42,8 @@ class PasswordController extends Controller Utils::bchash($account->username, $account->domain, $request->get('old_password'), $password->algorithm) )) { $this->updatePassword($account, $request->get('password'), $algorithm); + + $request->session()->flash('success', 'Password successfully changed'); return redirect()->route('account.panel'); } } @@ -48,9 +52,14 @@ class PasswordController extends Controller } else { // No password yet $this->updatePassword($account, $request->get('password'), $algorithm); - $request->session()->flash('success', 'Password changed'); - return redirect()->back(); + if (!empty($account->email)) { + Mail::to($account)->send(new ConfirmedRegistration($account)); + } + + $request->session()->flash('success', 'Password successfully set. Your SIP account creation process is now finished.'); + + return redirect()->route('account.panel'); } } diff --git a/flexiapi/app/Http/Controllers/Account/RegisterController.php b/flexiapi/app/Http/Controllers/Account/RegisterController.php index ad54f60..72a6c00 100644 --- a/flexiapi/app/Http/Controllers/Account/RegisterController.php +++ b/flexiapi/app/Http/Controllers/Account/RegisterController.php @@ -11,6 +11,7 @@ use Carbon\Carbon; use App\Account; use App\Alias; use App\Rules\SIP; +use App\Rules\WithoutSpaces; use App\Helpers\Utils; use App\Libraries\OvhSMS; use App\Mail\RegisterConfirmation; @@ -47,7 +48,9 @@ class RegisterController extends Controller { $request->validate([ 'terms' => 'accepted', - 'username' => 'required|unique:external.accounts,username|min:6', + 'username' => [ + 'required', 'unique:external.accounts,username', 'filled', new WithoutSpaces + ], 'g-recaptcha-response' => 'required|captcha', 'email' => 'required|email|confirmed' ]); @@ -81,13 +84,17 @@ class RegisterController extends Controller { $request->validate([ 'terms' =>'accepted', - 'username' => 'unique:external.accounts,username|nullable|min:6', - 'phone' => 'required|unique:external.aliases,alias|unique:external.accounts,username|starts_with:+|phone:AUTO', + 'username' => 'unique:external.accounts,username|nullable|filled', + 'phone' => [ + 'required', 'unique:external.aliases,alias', + 'unique:external.accounts,username', + new WithoutSpaces, 'starts_with:+', 'phone:AUTO' + ], 'g-recaptcha-response' => 'required|captcha', ]); $account = new Account; - $account->username = $request->has('username') + $account->username = !empty($request->get('username')) ? $request->get('username') : $request->get('phone'); diff --git a/flexiapi/app/Http/Controllers/Api/AccountController.php b/flexiapi/app/Http/Controllers/Api/AccountController.php index a20c6aa..4c6c313 100644 --- a/flexiapi/app/Http/Controllers/Api/AccountController.php +++ b/flexiapi/app/Http/Controllers/Api/AccountController.php @@ -15,9 +15,10 @@ class AccountController extends Controller public function store(Request $request) { $request->validate([ - 'username' => 'required|unique:external.accounts,username|min:6', + 'username' => 'required|unique:external.accounts,username|filled', 'algorithm' => 'required|in:SHA-256,MD5', - 'password' => 'required|min:6', + 'password' => 'required|filled', + 'domain' => 'min:3', ]); $algorithm = $request->has('password_sha256') ? 'SHA-256' : 'MD5'; @@ -26,7 +27,9 @@ class AccountController extends Controller $account->username = $request->get('username'); $account->email = $request->get('email'); $account->activated = true; - $account->domain = config('app.sip_domain'); + $account->domain = $request->has('domain') + ? $request->get('domain') + : config('app.sip_domain'); $account->ip_address = $request->ip(); $account->creation_time = Carbon::now(); $account->user_agent = config('app.name'); diff --git a/flexiapi/app/Mail/ConfirmedRegistration.php b/flexiapi/app/Mail/ConfirmedRegistration.php new file mode 100644 index 0000000..5a6423d --- /dev/null +++ b/flexiapi/app/Mail/ConfirmedRegistration.php @@ -0,0 +1,29 @@ +_account = $account; + } + + public function build() + { + return $this->view('mails.confirmed_registration') + ->text('mails.confirmed_registration_text') + ->with(['account' => $this->_account]); + } +} diff --git a/flexiapi/app/Mail/PasswordAuthentication.php b/flexiapi/app/Mail/PasswordAuthentication.php index df429af..0079f0c 100644 --- a/flexiapi/app/Mail/PasswordAuthentication.php +++ b/flexiapi/app/Mail/PasswordAuthentication.php @@ -15,21 +15,11 @@ class PasswordAuthentication extends Mailable private $_account; - /** - * Create a new message instance. - * - * @return void - */ public function __construct(Account $account) { $this->_account = $account; } - /** - * Build the message. - * - * @return $this - */ public function build() { return $this->view('mails.authentication') diff --git a/flexiapi/app/Providers/AppServiceProvider.php b/flexiapi/app/Providers/AppServiceProvider.php index ee8ca5b..b86200e 100644 --- a/flexiapi/app/Providers/AppServiceProvider.php +++ b/flexiapi/app/Providers/AppServiceProvider.php @@ -6,21 +6,11 @@ use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { - /** - * Register any application services. - * - * @return void - */ public function register() { // } - /** - * Bootstrap any application services. - * - * @return void - */ public function boot() { // diff --git a/flexiapi/app/Rules/SIP.php b/flexiapi/app/Rules/SIP.php index 4d2247a..c08f7b0 100644 --- a/flexiapi/app/Rules/SIP.php +++ b/flexiapi/app/Rules/SIP.php @@ -7,34 +7,17 @@ use Illuminate\Support\Str; class SIP implements Rule { - /** - * Create a new rule instance. - * - * @return void - */ public function __construct() { // } - /** - * Determine if the validation rule passes. - * - * @param string $attribute - * @param mixed $value - * @return bool - */ public function passes($attribute, $value) { // TODO complete me return Str::contains($value, '@'); } - /** - * Get the validation error message. - * - * @return string - */ public function message() { return 'The :attribute must be a SIP address.'; diff --git a/flexiapi/app/Rules/WithoutSpaces.php b/flexiapi/app/Rules/WithoutSpaces.php new file mode 100644 index 0000000..68e96cd --- /dev/null +++ b/flexiapi/app/Rules/WithoutSpaces.php @@ -0,0 +1,23 @@ +=5.5.5" }, "require-dev": { @@ -64,7 +64,7 @@ "no-captcha", "recaptcha" ], - "time": "2020-08-06T05:45:09+00:00" + "time": "2020-09-10T02:31:52+00:00" }, { "name": "dnoegel/php-xdg-base-dir", @@ -322,16 +322,16 @@ }, { "name": "egulias/email-validator", - "version": "2.1.19", + "version": "2.1.20", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "840d5603eb84cc81a6a0382adac3293e57c1c64c" + "reference": "f46887bc48db66c7f38f668eb7d6ae54583617ff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/840d5603eb84cc81a6a0382adac3293e57c1c64c", - "reference": "840d5603eb84cc81a6a0382adac3293e57c1c64c", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/f46887bc48db66c7f38f668eb7d6ae54583617ff", + "reference": "f46887bc48db66c7f38f668eb7d6ae54583617ff", "shasum": "" }, "require": { @@ -376,7 +376,7 @@ "validation", "validator" ], - "time": "2020-08-08T21:28:19+00:00" + "time": "2020-09-06T13:44:32+00:00" }, { "name": "fideloper/proxy", @@ -740,16 +740,16 @@ }, { "name": "laravel/framework", - "version": "v6.18.38", + "version": "v6.18.40", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "94a29cadcc0d48b89b4aa820f414fb7721ba0e22" + "reference": "e42450df0896b7130ccdb5290a114424e18887c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/94a29cadcc0d48b89b4aa820f414fb7721ba0e22", - "reference": "94a29cadcc0d48b89b4aa820f414fb7721ba0e22", + "url": "https://api.github.com/repos/laravel/framework/zipball/e42450df0896b7130ccdb5290a114424e18887c9", + "reference": "e42450df0896b7130ccdb5290a114424e18887c9", "shasum": "" }, "require": { @@ -885,7 +885,7 @@ "framework", "laravel" ], - "time": "2020-09-01T13:40:51+00:00" + "time": "2020-09-09T15:02:20+00:00" }, { "name": "laravel/tinker", @@ -953,28 +953,28 @@ }, { "name": "laravelcollective/html", - "version": "v6.1.2", + "version": "v6.2.0", "source": { "type": "git", "url": "https://github.com/LaravelCollective/html.git", - "reference": "5ef9a3c9ae2423fe5618996f3cde375d461a3fc6" + "reference": "3bb99be7502feb2129b375cd026ccb0fa4b66628" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/LaravelCollective/html/zipball/5ef9a3c9ae2423fe5618996f3cde375d461a3fc6", - "reference": "5ef9a3c9ae2423fe5618996f3cde375d461a3fc6", + "url": "https://api.github.com/repos/LaravelCollective/html/zipball/3bb99be7502feb2129b375cd026ccb0fa4b66628", + "reference": "3bb99be7502feb2129b375cd026ccb0fa4b66628", "shasum": "" }, "require": { - "illuminate/http": "^6.0|^7.0", - "illuminate/routing": "^6.0|^7.0", - "illuminate/session": "^6.0|^7.0", - "illuminate/support": "^6.0|^7.0", - "illuminate/view": "^6.0|^7.0", + "illuminate/http": "^6.0|^7.0|^8.0", + "illuminate/routing": "^6.0|^7.0|^8.0", + "illuminate/session": "^6.0|^7.0|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0", + "illuminate/view": "^6.0|^7.0|^8.0", "php": ">=7.2.5" }, "require-dev": { - "illuminate/database": "^6.0|^7.0", + "illuminate/database": "^6.0|^7.0|^8.0", "mockery/mockery": "~1.0", "phpunit/phpunit": "~7.1" }, @@ -1017,20 +1017,20 @@ ], "description": "HTML and Form Builders for the Laravel Framework", "homepage": "https://laravelcollective.com", - "time": "2020-05-19T18:02:16+00:00" + "time": "2020-09-07T19:59:40+00:00" }, { "name": "league/commonmark", - "version": "1.5.4", + "version": "1.5.5", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "21819c989e69bab07e933866ad30c7e3f32984ba" + "reference": "45832dfed6007b984c0d40addfac48d403dc6432" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/21819c989e69bab07e933866ad30c7e3f32984ba", - "reference": "21819c989e69bab07e933866ad30c7e3f32984ba", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/45832dfed6007b984c0d40addfac48d403dc6432", + "reference": "45832dfed6007b984c0d40addfac48d403dc6432", "shasum": "" }, "require": { @@ -1042,7 +1042,7 @@ }, "require-dev": { "cebe/markdown": "~1.0", - "commonmark/commonmark.js": "0.29.1", + "commonmark/commonmark.js": "0.29.2", "erusev/parsedown": "~1.0", "ext-json": "*", "github/gfm": "0.29.0", @@ -1112,7 +1112,7 @@ "type": "tidelift" } ], - "time": "2020-08-18T01:19:12+00:00" + "time": "2020-09-13T14:44:46+00:00" }, { "name": "league/flysystem", @@ -1403,16 +1403,16 @@ }, { "name": "nesbot/carbon", - "version": "2.39.0", + "version": "2.39.2", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "0a41ea7f7fedacf307b7a339800e10356a042918" + "reference": "326efde1bc09077a26cb77f6e2e32e13f06c27f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/0a41ea7f7fedacf307b7a339800e10356a042918", - "reference": "0a41ea7f7fedacf307b7a339800e10356a042918", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/326efde1bc09077a26cb77f6e2e32e13f06c27f2", + "reference": "326efde1bc09077a26cb77f6e2e32e13f06c27f2", "shasum": "" }, "require": { @@ -1425,7 +1425,7 @@ "doctrine/orm": "^2.7", "friendsofphp/php-cs-fixer": "^2.14 || ^3.0", "kylekatarnls/multi-tester": "^2.0", - "phpmd/phpmd": "^2.8", + "phpmd/phpmd": "^2.9", "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^0.12.35", "phpunit/phpunit": "^7.5 || ^8.0", @@ -1488,7 +1488,7 @@ "type": "tidelift" } ], - "time": "2020-08-24T12:35:58+00:00" + "time": "2020-09-10T12:16:42+00:00" }, { "name": "nikic/php-parser", @@ -1544,16 +1544,16 @@ }, { "name": "opis/closure", - "version": "3.5.6", + "version": "3.5.7", "source": { "type": "git", "url": "https://github.com/opis/closure.git", - "reference": "e8d34df855b0a0549a300cb8cb4db472556e8aa9" + "reference": "4531e53afe2fc660403e76fb7644e95998bff7bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opis/closure/zipball/e8d34df855b0a0549a300cb8cb4db472556e8aa9", - "reference": "e8d34df855b0a0549a300cb8cb4db472556e8aa9", + "url": "https://api.github.com/repos/opis/closure/zipball/4531e53afe2fc660403e76fb7644e95998bff7bf", + "reference": "4531e53afe2fc660403e76fb7644e95998bff7bf", "shasum": "" }, "require": { @@ -1601,7 +1601,7 @@ "serialization", "serialize" ], - "time": "2020-08-11T08:46:50+00:00" + "time": "2020-09-06T17:02:15+00:00" }, { "name": "ovh/ovh", @@ -1750,22 +1750,22 @@ }, { "name": "propaganistas/laravel-phone", - "version": "4.2.4", + "version": "4.2.5", "source": { "type": "git", "url": "https://github.com/Propaganistas/Laravel-Phone.git", - "reference": "e207b24c3d51623aaceda784c6ba0a7b9d9de2f9" + "reference": "090a5617cfd5a565df359d3b8bd680b0f87ad99e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Propaganistas/Laravel-Phone/zipball/e207b24c3d51623aaceda784c6ba0a7b9d9de2f9", - "reference": "e207b24c3d51623aaceda784c6ba0a7b9d9de2f9", + "url": "https://api.github.com/repos/Propaganistas/Laravel-Phone/zipball/090a5617cfd5a565df359d3b8bd680b0f87ad99e", + "reference": "090a5617cfd5a565df359d3b8bd680b0f87ad99e", "shasum": "" }, "require": { "giggsey/libphonenumber-for-php": "^7.0|^8.0", - "illuminate/support": "^6.0|^7.0", - "illuminate/validation": "^6.0|^7.0", + "illuminate/support": "^6.0|^7.0|^8.0", + "illuminate/validation": "^6.0|^7.0|^8.0", "league/iso3166": "^2.0", "php": ">=7.1" }, @@ -1807,7 +1807,7 @@ "phone", "validation" ], - "time": "2020-06-22T06:43:41+00:00" + "time": "2020-09-08T18:43:48+00:00" }, { "name": "psr/container", @@ -3895,16 +3895,16 @@ }, { "name": "symfony/service-contracts", - "version": "v2.1.3", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "58c7475e5457c5492c26cc740cc0ad7464be9442" + "reference": "d15da7ba4957ffb8f1747218be9e1a121fd298a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/58c7475e5457c5492c26cc740cc0ad7464be9442", - "reference": "58c7475e5457c5492c26cc740cc0ad7464be9442", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d15da7ba4957ffb8f1747218be9e1a121fd298a1", + "reference": "d15da7ba4957ffb8f1747218be9e1a121fd298a1", "shasum": "" }, "require": { @@ -3917,7 +3917,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "2.2-dev" }, "thanks": { "name": "symfony/contracts", @@ -3967,7 +3967,7 @@ "type": "tidelift" } ], - "time": "2020-07-06T13:23:11+00:00" + "time": "2020-09-07T11:33:47+00:00" }, { "name": "symfony/translation", @@ -4061,16 +4061,16 @@ }, { "name": "symfony/translation-contracts", - "version": "v2.1.3", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "616a9773c853097607cf9dd6577d5b143ffdcd63" + "reference": "77ce1c3627c9f39643acd9af086631f842c50c4d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/616a9773c853097607cf9dd6577d5b143ffdcd63", - "reference": "616a9773c853097607cf9dd6577d5b143ffdcd63", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/77ce1c3627c9f39643acd9af086631f842c50c4d", + "reference": "77ce1c3627c9f39643acd9af086631f842c50c4d", "shasum": "" }, "require": { @@ -4082,7 +4082,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "2.2-dev" }, "thanks": { "name": "symfony/contracts", @@ -4132,7 +4132,7 @@ "type": "tidelift" } ], - "time": "2020-07-06T13:23:11+00:00" + "time": "2020-09-07T11:33:47+00:00" }, { "name": "symfony/var-dumper", diff --git a/flexiapi/config/app.php b/flexiapi/config/app.php index 2fd89e4..0345a86 100644 --- a/flexiapi/config/app.php +++ b/flexiapi/config/app.php @@ -16,9 +16,13 @@ return [ 'name' => env('APP_NAME', 'Laravel'), 'sip_domain' => env('APP_SIP_DOMAIN', 'sip.domain.com'), 'flexisip_proxy_pid' => env('APP_FLEXISIP_PROXY_PID', '/var/run/flexisip-proxy.pid'), + 'newsletter_registration_address' => env('NEWSLETTER_REGISTRATION_ADDRESS', ''), 'phone_authentication' => env('PHONE_AUTHENTICATION', true), + 'proxy_registrar_address' => env('ACCOUNT_PROXY_REGISTRAR_ADDRESS', 'sip.domain.com'), + 'transport_protocol' => env('ACCOUNT_TRANSPORT_PROTOCOL', 'TLS (recommended), TCP or UDP'), + /* |-------------------------------------------------------------------------- | Application Environment diff --git a/flexiapi/config/mail.php b/flexiapi/config/mail.php index dabecdf..4d591f5 100644 --- a/flexiapi/config/mail.php +++ b/flexiapi/config/mail.php @@ -1,6 +1,7 @@ env('MAIL_SIGNATURE', 'The Linphone Team'), /* |-------------------------------------------------------------------------- diff --git a/flexiapi/public/css/lindoor.style.css b/flexiapi/public/css/lindoor.style.css index db5fac3..df85851 100644 --- a/flexiapi/public/css/lindoor.style.css +++ b/flexiapi/public/css/lindoor.style.css @@ -27,19 +27,14 @@ body > div { } .container { - max-width: 960px; + max-width: 800px; } -/* -@media screen and (max-width: 991px) { - nav.navbar { - display: none; - } -}*/ h1, h2, h3, a, label { color: #6081C9; } +body > footer a, nav ul li a { color: white; opacity: 0.8; @@ -100,15 +95,3 @@ body > footer { padding: 1rem; text-align: center; } -/* -body > footer::before { - background-image: url('/img/footer.svg'); - height: 9rem; - background-color: white; - background-position: bottom center; - background-repeat: repeat-x; - display: block; - width: 100%; - background-size: 40rem; - content: ''; -}*/ \ No newline at end of file diff --git a/flexiapi/public/css/style.css b/flexiapi/public/css/style.css index 2b45eae..3ac2f4c 100644 --- a/flexiapi/public/css/style.css +++ b/flexiapi/public/css/style.css @@ -53,6 +53,7 @@ h1, h2, h3, a, label { color: #ff733b; } +body > footer a, nav ul li a { color: white; opacity: 0.8; diff --git a/flexiapi/resources/views/account/authenticate/email.blade.php b/flexiapi/resources/views/account/authenticate/email.blade.php index 447b4e3..a8a2db3 100644 --- a/flexiapi/resources/views/account/authenticate/email.blade.php +++ b/flexiapi/resources/views/account/authenticate/email.blade.php @@ -5,9 +5,9 @@ @include('parts.already_auth') @else @if ($account->activated) -
A unique authentication link was sent by email to {{ $account->email }}
+A unique authentication link was sent by email to {{ $account->email }}.
@else -To finish your registration process and set a password please follow the link sent on your email address {{ $account->email }}
+To finish your registration process and set a password please follow the link sent on your email address {{ $account->email }}.
@endif @endif @endsection \ No newline at end of file diff --git a/flexiapi/resources/views/account/authenticate/phone.blade.php b/flexiapi/resources/views/account/authenticate/phone.blade.php index a920b89..8bc8689 100644 --- a/flexiapi/resources/views/account/authenticate/phone.blade.php +++ b/flexiapi/resources/views/account/authenticate/phone.blade.php @@ -4,7 +4,12 @@ @if (Auth::check()) @include('parts.already_auth') @else -Please enter the PIN code was sent to your phone number to finish your authentication.
+ @else +To finish your registration process and set a password please enter the PIN code you just received by SMS.
+ @endif +There are {{ $count }} users registered with this service.
+There are {{ number_format($count) }} users registered with this service.
@if (config('instance.intro_registration')){!! nl2br(config('instance.intro_registration')) !!}
diff --git a/flexiapi/resources/views/account/login.blade.php b/flexiapi/resources/views/account/login.blade.php index 7d26997..691c3be 100644 --- a/flexiapi/resources/views/account/login.blade.php +++ b/flexiapi/resources/views/account/login.blade.php @@ -28,7 +28,7 @@You already have an account? - Authenticate + Login
Fill a phone number and a username (optional) you will then be able to set a password to finish the registration process.
+Please enter your phone number and optionally a username. When the username is set, it will identify you on the service: other users won't need to know your phone number to call you.
The next step of the registration procedure will ask you to setup a password.
username unique username, minimum 6 characterspassword required minimum 6 charactersalgorithm required, values can be SHA-256 or MD5domain optional, the value is set to the default registration domain if not setTo create an account directly from the API.
This endpoint is authenticated and requires an admin account.