mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-26 04:57:56 +02:00
Revert 'autogenerate token.'
This commit is contained in:
parent
3fcca6ab52
commit
cacdd9e20a
4 changed files with 5 additions and 13 deletions
|
@ -37,12 +37,7 @@ type SessionManagerCtx struct {
|
|||
emmiter events.EventEmmiter
|
||||
}
|
||||
|
||||
func (manager *SessionManagerCtx) Create(profile types.MemberProfile) (types.Session, string, error) {
|
||||
id, err := utils.NewUID(32)
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
|
||||
func (manager *SessionManagerCtx) Create(id string, profile types.MemberProfile) (types.Session, string, error) {
|
||||
token, err := utils.NewUID(64)
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue