Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
xffruit
Commits
e1b6be2f
Commit
e1b6be2f
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DEV_20150805_001' of
http://121.42.32.57/root/xffruit
into DEV_20150805_001
parents
f900762e
99392701
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
+20
-5
ICRHTTPController.m
XFFruit/Controllers/HTTPController/ICRHTTPController.m
+4
-2
ICRUserUtil.h
XFFruit/Utilities/UserUtil/ICRUserUtil.h
+3
-0
ICRLoginViewController.m
XFFruit/ViewControllers/Login/ICRLoginViewController.m
+9
-3
ICRSystemViewController.m
XFFruit/ViewControllers/System/ICRSystemViewController.m
+4
-0
No files found.
XFFruit/Controllers/HTTPController/ICRHTTPController.m
View file @
e1b6be2f
...
...
@@ -513,6 +513,8 @@ acceptTypeJson:(BOOL)bAcceptJson
userUtil
.
orgId
=
dictResult
[
@"enterprise_uuid"
];
userUtil
.
authenticode
=
dictResult
[
@"authenticode"
];
userUtil
.
permissions
=
dictResult
[
@"permissions"
];
userUtil
.
password
=
nsPassword
;
userUtil
.
isLogout
=
NO
;
[
userUtil
saveArchive
];
if
(
succ
)
{
succ
(
dictResult
);
...
...
@@ -531,9 +533,9 @@ acceptTypeJson:(BOOL)bAcceptJson
fail
(
error
);
}
};
// NSString *nsPassword = [self.m_containerView.m_passwordTextF.text uppercaseMD5String];
NSDictionary
*
dictParametes
=
@{
@"password"
:
nsPassword
,
@{
@"password"
:
[
nsPassword
uppercaseMD5String
]
,
@"authenticode"
:
nsRegisterCode
,
};
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Utilities/UserUtil/ICRUserUtil.h
View file @
e1b6be2f
...
...
@@ -36,6 +36,9 @@
@property
(
copy
,
nonatomic
)
NSString
*
currentStoreID
;
//
@property
(
copy
,
nonatomic
)
NSString
*
uniqueID
;
//
//avatar add
@property
(
assign
,
nonatomic
)
BOOL
isLogout
;
+
(
instancetype
)
sharedInstance
;
-
(
BOOL
)
saveArchive
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Login/ICRLoginViewController.m
View file @
e1b6be2f
...
...
@@ -121,7 +121,12 @@
self
.
m_containerView
.
m_cCodeTextF
.
text
=
userU
.
registerCode
;
//*registerCode; //企业认证码
self
.
m_containerView
.
m_userNameTextF
.
text
=
userU
.
userName
;
self
.
m_containerView
.
m_passwordTextF
.
text
=
userU
.
password
;
if
(
userU
.
isLogout
)
{
//self.m_containerView.m_passwordTextF.text = userU.password;
}
else
{
self
.
m_containerView
.
m_passwordTextF
.
text
=
userU
.
password
;
}
[
self
.
m_containerView
checkLoginEnable
];
//#else
//
...
...
@@ -141,7 +146,8 @@
[
appDelegate
comperVersion
];
NSString
*
nsRegisterCode
=
self
.
m_containerView
.
m_cCodeTextF
.
text
;
NSString
*
nsUserName
=
self
.
m_containerView
.
m_userNameTextF
.
text
;
NSString
*
nsPassword
=
[
self
.
m_containerView
.
m_passwordTextF
.
text
uppercaseMD5String
];
//NSString *nsPassword = [self.m_containerView.m_passwordTextF.text uppercaseMD5String];
NSString
*
nsPassword
=
self
.
m_containerView
.
m_passwordTextF
.
text
;
// NSString *nsRegisterCode = @"211534962";
// NSString *nsUserName = @"admin";
// NSString *nsPassword = @"thoradmin";
...
...
@@ -150,7 +156,7 @@
void
(
^
succ
)(
id
)
=
^
(
id
data
)
{
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
userUtil
.
bAutoLogin
=
@
(
[
_m_containerView
isAutoLogin
]
);
[
userUtil
saveArchive
];
ICRAppViewControllerManager
*
mgr
=
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/System/ICRSystemViewController.m
View file @
e1b6be2f
...
...
@@ -139,6 +139,10 @@
ICRAppViewControllerManager
*
mgr
=
[
ICRAppViewControllerManager
getAppViewControllerManager
];
[
mgr
doLogout
];
ICRUserUtil
*
userUtil
=
[
ICRUserUtil
sharedInstance
];
userUtil
.
isLogout
=
YES
;
[
userUtil
saveArchive
];
}
-
(
void
)
onChangePassword
:
(
__unused
id
)
sender
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment