verify

package
v0.0.0-...-6dbb2d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Copyright 2018. box.la authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccExist

func AccExist(account string) (bool, error)

检测用户名是否存在

func AdminAcc

func AdminAcc(appid string) (bool, error)

检测账号是否为私钥APP

func BranchExists

func BranchExists(name string, creater_id int64) (bool, error)

验证部门是否存在

func FromIsTo

func FromIsTo(to string) (bool, error)

验证转账信息中from和to是否相等

func HasApplyedRegistration

func HasApplyedRegistration(appid string, captainid string) (bool, error)

是否提交过相同的注册申请

func SignInfo

func SignInfo(msg, pubkey, signature string) (bool, error)

验证签名值

func SignPassword

func SignPassword(appid, password string) (bool, error)

校验密码

func ValidateUser

func ValidateUser(appid string) (models.AccountInfo, int, map[string]string)

校验账号

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL