Skip to content

Instantly share code, notes, and snippets.

View anselmelly's full-sized avatar
💭
Available for Software Consultations

Ansel Melly anselmelly

💭
Available for Software Consultations
View GitHub Profile

Resend verification Code

POST /api/resend-verification-code

  • user has to be logged in
  • sms can only be sent 3 times
  • any subsequent request will be tagged as pending for the administrator to review

response (max messages not reached)

{
sudo apt update;
sudo apt upgrade -y;
sudo apt -y install lsb-release apt-transport-https ca-certificates;
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg;
echo "deb https://packages.sury.org/php/ buster main" | sudo tee /etc/apt/sources.list.d/php.list;
sudo apt update;
sudo apt -y install php7.4;
sudo systemctl disable --now apache2;
sudo apt install -y php7.4-{fpm,mysql,dom,simplexml,ssh2,xml,xmlreader,curl,exif,ftp,gd,iconv,imagick,json,mbstring,posix,sockets,tokenizer,soap};
sudo systemctl enable --now php7.4-fpm nginx mysql;
sudo apt update;
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https;
wget https://packages.sury.org/php/apt.gpg;
sudo apt-key add apt.gpg;
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list;
sudo apt update;
sudo apt install -y php7.4-{fpm,mysql,dom,simplexml,ssh2,xml,xmlreader,curl,exif,ftp,gd,iconv,imagick,json,mbstring,posix,sockets,tokenizer};
sudo update-alternatives --set php /usr/bin/php7.4;
sudo systemctl disable --now apache2;
$.get(api_url+'/contact/3/update',{
contact_group:3,
phone:"0721234567:
},function(d){
console.log(d);
},'json');