Tag:Cell-phone number

  • DRF — JWT based multi-mode login and custom multi-mode login


    1、 Multi way login based on JWT 1 mobile number + password user name + password email + password 2 process analysis (post request): -Route: generated automatically (it is recommended to generate automatically, or write by yourself) -View class: viewset (viewsetmixin, views. Apiview) -Serialization class: override the validate method, where the user name and password […]

  • Vue web chat system imitates wechat and microblog web pages


    Recently, I have been learning the Vue framework. After comparing react and angular, I found that Vue is much faster to get started. Before, I used Vue to develop oneVue imitation wechat mobile terminalIM chat. Recently, I want to continue to strengthen my study, so I made a version of Vue chat room on the […]

  • Laravel admin Association query


    Original address:https://blog.csdn.net/yang101… rights_ exchange_ The log table is an equity exchange record associated with the user ID (user_ ID), you need to query the user redemption record according to the user’s mobile phone number. The expected final SQL is as follows: SELECT * FROM `rights_exchange_log` LEFT JOIN `fk_member` ON `fk_member`.`id` = `rights_exchange_log`.`member_id` WHERE `fk_member`.`tel` = […]

  • Using nginx and xshell, wechat local development is no longer difficult


    background Recently, in understanding the content of wechat subscription number, the project encountered an embarrassing problem before it started. How to choose intranet penetration work. At present, there are various content penetration tools on the market, such as: ngrok, natapp, peanut shell, netwear cloud, etc., which are both free and paid. It is enough to […]

  • The use of redisson


    The use of redisson brief introduction In current projects, there are often concurrency problems. One way to solve the concurrency problem is to use distributed locks. In previous projects, the setnx feature of redis was often used to implement distributed lock, but it may cause deadlock. So, redisson can be used to implement distributed lock […]

  • The countdown button of getting verification code based on Vue + vant


    A very simple and common logicIt is the button logic to get the verification code of mobile phone and count down when logging inI use the mobile UI plug-in vant The introduction of vant will not be repeated. Please see vant’s official website for detailshttps://vant-contrib.gitee.io… Code directly < van field v-model= “phone” clear maxlength= “15” […]

  • EditText, bmob SMS verification explanation


    1:edittext: The difference between EditText and textview is that EditText can be edited. Compared with all the attributes of the view mentioned before, EditText has the following properties: android:inputType= In the figure below, except that textview is not EditText, the following are the input forms of “number”. The inputtype mode corresponds to the following input […]

  • Add, delete, modify and query database by springboot + MySQL


    1. Directory structure: 2、 pom.xml File: <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.3.RELEASE</version> <relativePath/> <!– lookup parent from repository –> </parent> <groupId>com.leyou.demo</groupId> <artifactId>user-service-demo</artifactId> <version>0.0.1-SNAPSHOT</version> <name>user-service-demo</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jdbc</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> […]

  • PHP hides the middle 4 digits of mobile phone number


    Today, I suddenly think of the mobile phone number. It’s better to hide this kind of private information in the project. So let’s summarize the methods that can be used, which are limited to the 11 digit mobile phone numbers in the mainland Method demonstration usesubstr_replacefunction # substr_ Replace – substring of the replacement string […]

  • Uni app development experience sharing 20: wechat app authorization login to get details to get mobile number


    Authorization page Because the permission pop-up window provided by wechat applet can only be used by general users to confirm authorization, you can write an authorization page to let users click to obtain relevant information of users, and then cooperate with the background to complete login source material Page code exampleThis interface is called on […]

  • Angularjs custom form validation


    Angular implements most of the commonly used HTML5 form control types (text, number, URL, email, date, radio, checkbox), and also implements many instructions as verification (required, pattern, minlength, MaxLength, min, max).In the custom instruction, we can add our validation method to the $validators object of ngmodelcontroller. To get the controller object, we need the requirengmodel […]

  • Django e-commerce website — login function


    After completing the registration function, the login function is relatively simple. The main logic is as follows:Set loginview class to be responsible for login functionSet the get method to respond to the request and feed back the user login pageSet the post method to get the user’s user name / mobile phone number, password and […]