我正在为验证码使用这个代码:
这是我在登录操作中的user_controller.php代码:
public function login() {
if (!empty($this->data)
&& !empty($this->Auth->data['User']['username'])
&& !empty($this->Auth->data['User']['password'])) {
我已经让条纹工作的很好了。当客户捐款时,就会创建一个新的订阅,而且效果很好--除非Stripe识别出电子邮件并说:“输入验证码。”
如果客户这样做,出于某种原因,不会创建新的订阅,也不会向客户收费。
这是我的费用-monthly.php
<?php
require_once('init.php');
// Set your secret key: remember to change this to your live secret key in production
// See your keys here https://dashboard.stripe.com/
我使用PHP来创建验证码图像。它显示了加载时的验证码。加载完成后,在Chrome中不会显示验证码图像。在其他浏览器中,它工作得很好。为什么?
<?php
// Create an image from button.png
$image = imagecreatefrompng('button.png');
// Set the font colour
$colour = imagecolorallocate($image, 255, 120, 4);
// Set the font
$font = '../fonts/Anorexia.ttf';