feat(dcauth): 新增后台手机号与设备认证登录
登录链路改为账号密码 + 短信验证码 + DCAuth 设备签名,并新增后台手机号绑定、 登录日志、设备绑定与重置接口。
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//go:build !windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func collectHardwareComponents() (map[string]string, error) {
|
||||
hostname, _ := os.Hostname()
|
||||
components := map[string]string{
|
||||
"platform": runtime.GOOS + "-" + runtime.GOARCH,
|
||||
}
|
||||
if normalized := normalizeComponent(hostname); normalized != "" {
|
||||
components["hostname"] = normalized
|
||||
}
|
||||
return components, ensureNotEmpty(components)
|
||||
}
|
||||
Reference in New Issue
Block a user